[][src]Struct selene_lib::standard_library::StandardLibrary

pub struct StandardLibrary {
    pub meta: Option<StandardLibraryMeta>,
    pub globals: BTreeMap<String, Field>,
    pub structs: BTreeMap<String, Field>,
}

Fields

meta: Option<StandardLibraryMeta>globals: BTreeMap<String, Field>structs: BTreeMap<String, Field>

Implementations

impl StandardLibrary[src]

pub fn from_name(name: &str) -> Option<StandardLibrary>[src]

pub fn from_config_name(
    name: &str,
    directory: Option<&Path>
) -> Result<Option<StandardLibrary>, StandardLibraryError>
[src]

pub fn from_file(
    filename: &Path
) -> Result<Option<StandardLibrary>, StandardLibraryError>
[src]

pub fn find_global(&self, names: &[String]) -> Option<&Field>[src]

pub fn unstruct<'a>(&'a self, field: &'a Field) -> &'a Field[src]

pub fn extend(&mut self, other: StandardLibrary)[src]

pub fn inflate(&mut self)[src]

Trait Implementations

impl Clone for StandardLibrary[src]

impl Debug for StandardLibrary[src]

impl Default for StandardLibrary[src]

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

impl Eq for StandardLibrary[src]

impl PartialEq<StandardLibrary> for StandardLibrary[src]

impl Serialize for StandardLibrary[src]

impl StructuralEq for StandardLibrary[src]

impl StructuralPartialEq for StandardLibrary[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, 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>,