Struct ciboulette::CibouletteStore[][src]

pub struct CibouletteStore { /* fields omitted */ }

Implementations

impl CibouletteStore[src]

impl CibouletteStore[src]

pub fn get_type_index(&self, name: &str) -> Option<&NodeIndex<u16>>[src]

Get a type index from the graph

pub fn get_type_with_index(
    &self,
    name: &str
) -> Option<(NodeIndex<u16>, &Arc<CibouletteResourceType>)>
[src]

Get a type from the graph

pub fn get_type_if_exists(
    &self,
    name: &str
) -> Option<Arc<CibouletteResourceType>>
[src]

Get a type from the graph, returning an error if not found

pub fn get_type(
    &self,
    name: &str
) -> Result<&Arc<CibouletteResourceType>, CibouletteError>
[src]

Get a type from the graph, returning an error if not found

pub fn get_rel(
    &self,
    from: &str,
    to: &str
) -> Result<(&CibouletteResourceType, &CibouletteRelationshipOption), CibouletteError>
[src]

Get a relationship from the graph

Trait Implementations

impl Clone for CibouletteStore[src]

impl Debug for CibouletteStore[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> 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.