Struct yy_typings::TexturePath
source · [−]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
sourceimpl Clone for TexturePath
impl Clone for TexturePath
sourcefn clone(&self) -> TexturePath
fn clone(&self) -> TexturePath
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for TexturePath
impl Debug for TexturePath
sourceimpl Default for TexturePath
impl Default for TexturePath
sourceimpl<'de> Deserialize<'de> for TexturePath
impl<'de> Deserialize<'de> for TexturePath
sourcefn 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
sourceimpl From<&TextureGroup> for TexturePath
impl From<&TextureGroup> for TexturePath
sourcefn from(o: &TextureGroup) -> TexturePath
fn from(o: &TextureGroup) -> TexturePath
Converts to this type from the input type.
sourceimpl From<TextureGroup> for TexturePath
impl From<TextureGroup> for TexturePath
sourcefn from(o: TextureGroup) -> Self
fn from(o: TextureGroup) -> Self
Converts to this type from the input type.
sourceimpl Hash for TexturePath
impl Hash for TexturePath
sourceimpl PartialEq<TexturePath> for TexturePath
impl PartialEq<TexturePath> for TexturePath
sourcefn eq(&self, other: &TexturePath) -> bool
fn eq(&self, other: &TexturePath) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl Serialize for TexturePath
impl Serialize for TexturePath
impl Eq for TexturePath
impl StructuralEq for TexturePath
impl StructuralPartialEq for TexturePath
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more