Struct yy_boss::FilesystemPath [−][src]
Expand description
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
Constructs a new path out of a base
and a name
.
Trait Implementations
Returns the “default value” for a type. Read more
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<FilesystemPath, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<FilesystemPath, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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
Mutably borrows from an owned value. Read more