Struct yy_typings::ViewPath [−][src]
pub struct ViewPath {
pub name: String,
pub path: ViewPathLocation,
}
Expand description
Viewpaths in the virtual file system created by the Folders in the Yyp,
deliminated by /
, and with a ViewPathLocation which ends in .yy
.\ or in
.yyp
.
Please note, the Default
implementation in this type is never a valid
option. It is provided for convenience, but the default Root for any file
not in a folder is as follows: ```
use yy_typings::{ViewPathLocation, ViewPath};
const PROJECT_NAME: &’static str = “A project Name”;
let root_path = ViewPath { name: PROJECT_NAME.to_string(), path: ViewPathLocation(format!(“{}.yyp”, PROJECT_NAME)) };
Fields
name: String
The human readable name of the parent. for a spr_player
, this
might correspond to Sprites
.
path: ViewPathLocation
The path to the view member itself.
Implementations
Trait Implementations
fn 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
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for ViewPath
impl UnwindSafe for ViewPath
Blanket Implementations
Mutably borrows from an owned value. Read more