Struct yy_typings::TexturePathLocation
source · [−]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
sourceimpl Clone for TexturePathLocation
impl Clone for TexturePathLocation
sourcefn clone(&self) -> TexturePathLocation
fn clone(&self) -> TexturePathLocation
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 TexturePathLocation
impl Debug for TexturePathLocation
sourceimpl Default for TexturePathLocation
impl Default for TexturePathLocation
sourceimpl<'de> Deserialize<'de> for TexturePathLocation
impl<'de> Deserialize<'de> for TexturePathLocation
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 Display for TexturePathLocation
impl Display for TexturePathLocation
sourceimpl From<TexturePathLocation> for String
impl From<TexturePathLocation> for String
sourcefn from(o: TexturePathLocation) -> Self
fn from(o: TexturePathLocation) -> Self
Converts to this type from the input type.
sourceimpl Hash for TexturePathLocation
impl Hash for TexturePathLocation
sourceimpl Ord for TexturePathLocation
impl Ord for TexturePathLocation
sourceimpl PartialEq<TexturePathLocation> for TexturePathLocation
impl PartialEq<TexturePathLocation> for TexturePathLocation
sourcefn eq(&self, other: &TexturePathLocation) -> bool
fn eq(&self, other: &TexturePathLocation) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &TexturePathLocation) -> bool
fn ne(&self, other: &TexturePathLocation) -> bool
This method tests for !=
.
sourceimpl PartialOrd<TexturePathLocation> for TexturePathLocation
impl PartialOrd<TexturePathLocation> for TexturePathLocation
sourcefn partial_cmp(&self, other: &TexturePathLocation) -> Option<Ordering>
fn partial_cmp(&self, other: &TexturePathLocation) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl Serialize for TexturePathLocation
impl Serialize for TexturePathLocation
impl Eq for TexturePathLocation
impl StructuralEq for TexturePathLocation
impl StructuralPartialEq for TexturePathLocation
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
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.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more