[][src]Struct yy_boss::FilesystemPath

pub struct FilesystemPath {
    pub name: String,
    pub path: PathBuf,
}

Paths on the File System.

If a user joins path with a yyp's absolute folder location, the resulting path will always point to a valid file.

path will always point to a file, and the file it points to will always have a .yy extension. The name field and the file_name of the path will always be equal to each other.

Fields

name: String

The name of the resource which the Path points to. For an spr_sprite, for example, it will be spr_sprite.

path: PathBuf

The direct path from the .yyp directory to the resource needed on the file system.

Implementations

impl FilesystemPath[src]

pub fn new(base: &str, name: &str) -> FilesystemPath[src]

Constructs a new path out of a base and a name. This is just a convenience method.

Trait Implementations

impl Clone for FilesystemPath[src]

impl Debug for FilesystemPath[src]

impl Default for FilesystemPath[src]

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

impl Eq for FilesystemPath[src]

impl Hash for FilesystemPath[src]

impl Ord for FilesystemPath[src]

impl PartialEq<FilesystemPath> for FilesystemPath[src]

impl PartialOrd<FilesystemPath> for FilesystemPath[src]

impl Serialize for FilesystemPath[src]

impl YypSerialization for FilesystemPath[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> SetParameter for T

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.

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