[−][src]Struct yy_boss::FilesystemPath
Paths on the File System.
If a user joins path
with a yyp's absolute folder location,
the resulting path will always point to a valid file.
path
will always point to a file, and the file it points to will always
have a .yy
extension. The name
field and the file_name
of the path
will always
be equal to each other.
Fields
name: String
The name of the resource which the Path points to. For an spr_sprite
, for example, it will
be spr_sprite
.
path: PathBuf
The direct path from the .yyp
directory to the resource needed on the file system.
Implementations
impl FilesystemPath
[src]
pub fn new(base: &str, name: &str) -> FilesystemPath
[src]
Constructs a new path out of a base
and a name
. This is just a convenience method.
Trait Implementations
impl Clone for FilesystemPath
[src]
fn clone(&self) -> FilesystemPath
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for FilesystemPath
[src]
impl Default for FilesystemPath
[src]
fn default() -> FilesystemPath
[src]
impl<'de> Deserialize<'de> for FilesystemPath
[src]
fn deserialize<__D>(
__deserializer: __D
) -> Result<FilesystemPath, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<FilesystemPath, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl Eq for FilesystemPath
[src]
impl Hash for FilesystemPath
[src]
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
[src]
__H: Hasher,
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for FilesystemPath
[src]
fn cmp(&self, other: &FilesystemPath) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<FilesystemPath> for FilesystemPath
[src]
fn eq(&self, other: &FilesystemPath) -> bool
[src]
fn ne(&self, other: &FilesystemPath) -> bool
[src]
impl PartialOrd<FilesystemPath> for FilesystemPath
[src]
fn partial_cmp(&self, other: &FilesystemPath) -> Option<Ordering>
[src]
fn lt(&self, other: &FilesystemPath) -> bool
[src]
fn le(&self, other: &FilesystemPath) -> bool
[src]
fn gt(&self, other: &FilesystemPath) -> bool
[src]
fn ge(&self, other: &FilesystemPath) -> bool
[src]
impl Serialize for FilesystemPath
[src]
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl YypSerialization for FilesystemPath
[src]
fn yyp_serialization(&self, _: usize) -> String
[src]
const LINE_ENDING: &'static str
[src]
Auto Trait Implementations
impl RefUnwindSafe for FilesystemPath
impl Send for FilesystemPath
impl Sync for FilesystemPath
impl Unpin for FilesystemPath
impl UnwindSafe for FilesystemPath
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,