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
Performs the conversion.
sourceimpl From<TextureGroup> for TexturePath
impl From<TextureGroup> for TexturePath
sourcefn from(o: TextureGroup) -> Self
fn from(o: TextureGroup) -> Self
Performs the conversion.
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
sourcefn ne(&self, other: &TexturePath) -> bool
fn ne(&self, other: &TexturePath) -> bool
This method tests for !=
.
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more