Struct yy_typings::TexturePath [−][src]
pub struct TexturePath {
pub name: String,
pub path: TexturePathLocation,
}
Expand description
A unqiue Id for textures. Although it appears as if it could support
hierarchies and nesting, textures ids never actually show that in
practice, so this form is likely an artifact of the Yyg internal project
structures.. The first member of this hierarchy is always
texturegroups
.
Fields
name: String
The human readable name of the parent. For a texture group Default
,
this name would read Default
.
path: TexturePathLocation
The path to the texture group, where:
assert_eq!(self.path.0, format!("texturegroups/{}", self.name))
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.
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for TexturePath
impl Send for TexturePath
impl Sync for TexturePath
impl Unpin for TexturePath
impl UnwindSafe for TexturePath
Blanket Implementations
Mutably borrows from an owned value. Read more