Struct yy_typings::ViewPathLocation [−][src]
pub struct ViewPathLocation(pub String);
Expand description
The path
component will always end with .yy, even if it describes
a virtual folder or file. Given the following Gms2 folder virtual system
(not operating system file system): ```txt
folders/
Sprites/
spr_enemy.yy
spr_player.yy
In this case, we would see the following `ViewPath`s, in Json form:
```json
[
{ "name": "spr_enemy", "path": "folders/Sprites/spr_enemy.yy" },
{ "name": "spr_player", "path": "folders/Sprites/spr_player.yy" }
]
NB the default provided here, a Blank String, is never correct in a Gms2 Project. Instead, to describe a file at the root of the project (ie, a file not inside a folder), please use: ```
use yy_typings::ViewPathLocation;
const PROJECT_NAME: &’static str = “A project Name”;
ViewPathLocation(format!(“{}.yyp”, PROJECT_NAME));
Tuple Fields
0: String
Implementations
Trait Implementations
Returns the “default value” for a type. Read more
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
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
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 ViewPathLocation
impl Send for ViewPathLocation
impl Sync for ViewPathLocation
impl Unpin for ViewPathLocation
impl UnwindSafe for ViewPathLocation
Blanket Implementations
Mutably borrows from an owned value. Read more