pub struct LocalFileLocator {
pub directory: PathBuf,
}
Expand description
Describes the location of a local file asset. Used in conjunction with Asset::file_name
.
Fields§
§directory: PathBuf
Package-relative path to the file, excluding the file name
Trait Implementations§
Source§impl Clone for LocalFileLocator
impl Clone for LocalFileLocator
Source§fn clone(&self) -> LocalFileLocator
fn clone(&self) -> LocalFileLocator
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for LocalFileLocator
impl Debug for LocalFileLocator
Source§impl<'de> Deserialize<'de> for LocalFileLocator
impl<'de> Deserialize<'de> for LocalFileLocator
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for LocalFileLocator
impl Hash for LocalFileLocator
Source§impl Ord for LocalFileLocator
impl Ord for LocalFileLocator
Source§fn cmp(&self, other: &LocalFileLocator) -> Ordering
fn cmp(&self, other: &LocalFileLocator) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for LocalFileLocator
impl PartialEq for LocalFileLocator
Source§impl PartialOrd for LocalFileLocator
impl PartialOrd for LocalFileLocator
Source§impl Serialize for LocalFileLocator
impl Serialize for LocalFileLocator
impl Eq for LocalFileLocator
impl StructuralPartialEq for LocalFileLocator
Auto Trait Implementations§
impl Freeze for LocalFileLocator
impl RefUnwindSafe for LocalFileLocator
impl Send for LocalFileLocator
impl Sync for LocalFileLocator
impl Unpin for LocalFileLocator
impl UnwindSafe for LocalFileLocator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)