[][src]Struct yy_typings::TexturePathLocation

pub struct TexturePathLocation(pub String);

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:

  1. It does not end in .yy.
  2. It uses / as a separator.
  3. It always starts with texturegroups.

Implementations

impl TexturePathLocation[src]

pub fn inner(&self) -> &str[src]

Access the inner member as a reference.

Trait Implementations

impl Clone for TexturePathLocation[src]

impl Debug for TexturePathLocation[src]

impl Default for TexturePathLocation[src]

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

impl Display for TexturePathLocation[src]

impl Eq for TexturePathLocation[src]

impl Hash for TexturePathLocation[src]

impl Into<String> for TexturePathLocation[src]

impl Ord for TexturePathLocation[src]

impl PartialEq<TexturePathLocation> for TexturePathLocation[src]

impl PartialOrd<TexturePathLocation> for TexturePathLocation[src]

impl Serialize for TexturePathLocation[src]

impl StructuralEq for TexturePathLocation[src]

impl StructuralPartialEq for TexturePathLocation[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> ToString for T where
    T: Display + ?Sized
[src]

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,