[][src]Struct binjs::meta::spec::TypeSum

pub struct TypeSum { /* fields omitted */ }

An enumeration of interfaces.

Methods

impl TypeSum[src]

pub fn new(types: Vec<TypeSpec>) -> TypeSum[src]

pub fn types(&self) -> &[TypeSpec][src]

pub fn types_mut(&mut self) -> &mut [TypeSpec][src]

pub fn interfaces(&self) -> &HashSet<NodeName, RandomState>[src]

pub fn get_interface(
    &self,
    spec: &Spec,
    name: &NodeName
) -> Option<Rc<Interface>>
[src]

pub fn with_type_case(&mut self, spec: TypeSpec) -> &mut TypeSum[src]

Add a new type case to this sum.

Trait Implementations

impl Clone for TypeSum[src]

impl Debug for TypeSum[src]

impl Eq for TypeSum[src]

impl PartialEq<TypeSum> for TypeSum[src]

impl StructuralEq for TypeSum[src]

impl StructuralPartialEq for TypeSum[src]

Auto Trait Implementations

impl !RefUnwindSafe for TypeSum

impl !Send for TypeSum

impl !Sync for TypeSum

impl Unpin for TypeSum

impl UnwindSafe for TypeSum

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> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Send + Sync + Any
[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>, 
[src]