[][src]Struct mamba::check::context::name::NameUnion

pub struct NameUnion { /* fields omitted */ }

Methods

impl NameUnion[src]

pub fn new(names: &[Name]) -> NameUnion[src]

pub fn is_empty(&self) -> bool[src]

pub fn as_direct(
    &self,
    msg: &str,
    pos: &Position
) -> TypeResult<HashSet<DirectName>>
[src]

pub fn empty() -> NameUnion[src]

pub fn names(&self) -> IntoIter<Name>[src]

pub fn substitute(
    &self,
    generics: &HashMap<String, Name>,
    pos: &Position
) -> TypeResult<NameUnion>
[src]

Trait Implementations

impl AsMutable for NameUnion[src]

impl AsNullable for NameUnion[src]

impl Clone for NameUnion[src]

impl Debug for NameUnion[src]

impl Display for NameUnion[src]

impl Eq for NameUnion[src]

impl<'_> From<&'_ DirectName> for NameUnion[src]

impl<'_> From<&'_ Expression> for NameUnion[src]

impl<'_> From<&'_ HashSet<NameUnion, RandomState>> for NameUnion[src]

impl<'_> From<&'_ Name> for NameUnion[src]

impl<'_> From<&'_ Subscript> for NameUnion[src]

impl<'_> From<&'_ str> for NameUnion[src]

impl<'_> HasParent<&'_ NameUnion> for Class[src]

impl<'_> HasParent<&'_ NameUnion> for ClassTuple[src]

impl<'_> HasParent<&'_ NameUnion> for ClassUnion[src]

impl Hash for NameUnion[src]

impl IsNullable for NameUnion[src]

impl IsSuperSet<NameUnion> for NameUnion[src]

impl<'_> LookupClass<&'_ NameUnion, ClassUnion> for Context[src]

fn class(
    &self,
    name: &NameUnion,
    pos: &Position
) -> Result<ClassUnion, Vec<TypeErr>>
[src]

Look up GenericClass and substitute generics to yield a Class.

Error

If NameUnion is empty.

impl PartialEq<NameUnion> for NameUnion[src]

impl StructuralEq for NameUnion[src]

impl<'_> TryFrom<&'_ AST> for NameUnion[src]

type Error = Vec<TypeErr>

The type returned in the event of a conversion error.

impl<'_> TryFrom<&'_ Box<AST>> for NameUnion[src]

type Error = Vec<TypeErr>

The type returned in the event of a conversion error.

impl<'_> TryFrom<&'_ Vec<AST>> for NameUnion[src]

type Error = Vec<TypeErr>

The type returned in the event of a conversion error.

impl Union<DirectName> for NameUnion[src]

impl Union<Name> for NameUnion[src]

impl Union<NameUnion> for NameUnion[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> ToString for T where
    T: Display + ?Sized
[src]

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>,