[−][src]Struct mamba::check::context::name::NameUnion
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]
&self,
msg: &str,
pos: &Position
) -> TypeResult<HashSet<DirectName>>
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]
&self,
generics: &HashMap<String, Name>,
pos: &Position
) -> TypeResult<NameUnion>
Trait Implementations
impl AsMutable for NameUnion
[src]
fn as_mutable(&self) -> Self
[src]
impl AsNullable for NameUnion
[src]
fn as_nullable(&self) -> Self
[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]
fn from(name: &DirectName) -> Self
[src]
impl<'_> From<&'_ Expression> for NameUnion
[src]
fn from(value: &Expression) -> Self
[src]
impl<'_> From<&'_ HashSet<NameUnion, RandomState>> for NameUnion
[src]
fn from(names: &HashSet<NameUnion, RandomState>) -> Self
[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]
fn has_parent(
&self,
name: &NameUnion,
ctx: &Context,
pos: &Position
) -> Result<bool, Vec<TypeErr>>
[src]
&self,
name: &NameUnion,
ctx: &Context,
pos: &Position
) -> Result<bool, Vec<TypeErr>>
impl<'_> HasParent<&'_ NameUnion> for ClassTuple
[src]
fn has_parent(
&self,
name: &NameUnion,
ctx: &Context,
pos: &Position
) -> TypeResult<bool>
[src]
&self,
name: &NameUnion,
ctx: &Context,
pos: &Position
) -> TypeResult<bool>
impl<'_> HasParent<&'_ NameUnion> for ClassUnion
[src]
fn has_parent(
&self,
name: &NameUnion,
ctx: &Context,
pos: &Position
) -> Result<bool, Vec<TypeErr>>
[src]
&self,
name: &NameUnion,
ctx: &Context,
pos: &Position
) -> Result<bool, Vec<TypeErr>>
impl Hash for NameUnion
[src]
fn hash<H: Hasher>(&self, state: &mut H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl IsNullable for NameUnion
[src]
fn is_nullable(&self) -> bool
[src]
impl IsSuperSet<NameUnion> for NameUnion
[src]
fn is_superset_of(
&self,
other: &NameUnion,
ctx: &Context,
pos: &Position
) -> TypeResult<bool>
[src]
&self,
other: &NameUnion,
ctx: &Context,
pos: &Position
) -> TypeResult<bool>
impl<'_> LookupClass<&'_ NameUnion, ClassUnion> for Context
[src]
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.
fn try_from(ast: &AST) -> Result<Self, Self::Error>
[src]
impl<'_> TryFrom<&'_ Box<AST>> for NameUnion
[src]
type Error = Vec<TypeErr>
The type returned in the event of a conversion error.
fn try_from(ast: &Box<AST>) -> Result<Self, Self::Error>
[src]
impl<'_> TryFrom<&'_ Vec<AST>> for NameUnion
[src]
type Error = Vec<TypeErr>
The type returned in the event of a conversion error.
fn try_from(asts: &Vec<AST>) -> Result<Self, Self::Error>
[src]
impl Union<DirectName> for NameUnion
[src]
fn union(&self, name: &DirectName) -> Self
[src]
impl Union<Name> for NameUnion
[src]
impl Union<NameUnion> for NameUnion
[src]
Auto Trait Implementations
impl RefUnwindSafe for NameUnion
impl Send for NameUnion
impl Sync for NameUnion
impl Unpin for NameUnion
impl UnwindSafe for NameUnion
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,