Struct yy_typings::TexturePath[][src]

pub struct TexturePath {
    pub name: String,
    pub path: TexturePathLocation,
}

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

impl Clone for TexturePath[src]

impl Debug for TexturePath[src]

impl Default for TexturePath[src]

impl<'de> Deserialize<'de> for TexturePath[src]

impl Eq for TexturePath[src]

impl From<&'_ TextureGroup> for TexturePath[src]

impl From<TextureGroup> for TexturePath[src]

impl Hash for TexturePath[src]

impl PartialEq<TexturePath> for TexturePath[src]

impl Serialize for TexturePath[src]

impl StructuralEq for TexturePath[src]

impl StructuralPartialEq for TexturePath[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.