Struct yy_typings::TexturePathLocation [−][src]
pub struct TexturePathLocation(pub String);
Expand description
The path
component will never end with .yy, even if it describes
a virtual folder or file. This is to say, given the texture groups
Default
, Crops
, and Enemies
, we would expect to see the following
TexturePath
vec, in Json:
[
{ "name": "Default", path: "texturegroups/Default" },
{ "name": "Crops", path: "texturegroups/Crops" },
{ "name": "Enemies", path: "texturegroups/Enemies" }
]
There are two important things to note about TextureGroup
:
- It does not end in
.yy
. - It uses
/
as a separator. - It always starts with
texturegroups
.
Tuple Fields
0: String
Implementations
Trait Implementations
Returns the “default value” for a type. Read more
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
Performs the conversion.
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
Auto Trait Implementations
impl RefUnwindSafe for TexturePathLocation
impl Send for TexturePathLocation
impl Sync for TexturePathLocation
impl Unpin for TexturePathLocation
impl UnwindSafe for TexturePathLocation
Blanket Implementations
Mutably borrows from an owned value. Read more