[][src]Struct yy_boss::FolderGraph

pub struct FolderGraph {
    pub name: String,
    pub path_to_parent: Option<ViewPath>,
    pub files: HashMap<String, FileMember>,
    pub folders: HashMap<String, SubfolderMember>,
}

Fields

name: Stringpath_to_parent: Option<ViewPath>files: HashMap<String, FileMember>folders: HashMap<String, SubfolderMember>

Implementations

impl FolderGraph[src]

pub fn root() -> FolderGraph[src]

pub fn new(name: String, parent: ViewPath) -> FolderGraph[src]

pub fn view_path(&self) -> ViewPath[src]

pub fn find_subfolder_mut(
    &mut self,
    view_path: &ViewPath
) -> Result<&mut FolderGraph, FolderGraphError>
[src]

pub fn find_subfolder_by_file(&mut self, name: &str) -> Option<&mut FolderGraph>[src]

pub fn max_suborder(&self) -> Option<usize>[src]

This returns the max_suborder within this Folder. In a sense, this is the "size" of the folder's children, though due to A-Z sorting in the Gms2 IDE, order and size are not always directly related.

Given the folder:

Sprites/
    - spr_player
    - OtherMembers/
    - spr_enemy

max_suborder will return 2, which is what spr_enemy's suborder would be.

Trait Implementations

impl Clone for FolderGraph[src]

impl Debug for FolderGraph[src]

impl Default for FolderGraph[src]

impl Eq for FolderGraph[src]

impl Hash for FolderGraph[src]

impl PartialEq<FolderGraph> for FolderGraph[src]

impl StructuralEq for FolderGraph[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> 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>,