[−][src]Struct mamba::check::context::name::DirectName
A direct name is a string with accompanying generics.
Useful to denote class and function names, where Tuples and Anonymous functions are not permitted.
Fields
name: String
generics: Vec<NameUnion>
Methods
impl DirectName
[src]
pub fn new(lit: &str, generics: &[NameUnion]) -> DirectName
[src]
pub fn empty() -> DirectName
[src]
pub fn substitute(
&self,
generics: &HashMap<String, Name>,
pos: &Position
) -> TypeResult<DirectName>
[src]
&self,
generics: &HashMap<String, Name>,
pos: &Position
) -> TypeResult<DirectName>
Trait Implementations
impl Clone for DirectName
[src]
fn clone(&self) -> DirectName
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for DirectName
[src]
impl Display for DirectName
[src]
impl Eq for DirectName
[src]
impl<'_> From<&'_ DirectName> for NameUnion
[src]
fn from(name: &DirectName) -> Self
[src]
impl<'_> From<&'_ DirectName> for Name
[src]
fn from(name: &DirectName) -> Self
[src]
impl<'_> From<&'_ str> for DirectName
[src]
impl<'_> HasParent<&'_ DirectName> for Class
[src]
fn has_parent(
&self,
name: &DirectName,
ctx: &Context,
pos: &Position
) -> Result<bool, Vec<TypeErr>>
[src]
&self,
name: &DirectName,
ctx: &Context,
pos: &Position
) -> Result<bool, Vec<TypeErr>>
impl<'_> HasParent<&'_ DirectName> for ClassUnion
[src]
fn has_parent(
&self,
name: &DirectName,
ctx: &Context,
pos: &Position
) -> Result<bool, Vec<TypeErr>>
[src]
&self,
name: &DirectName,
ctx: &Context,
pos: &Position
) -> Result<bool, Vec<TypeErr>>
impl<'_> HasParent<&'_ DirectName> for ClassTuple
[src]
fn has_parent(
&self,
name: &DirectName,
ctx: &Context,
pos: &Position
) -> TypeResult<bool>
[src]
&self,
name: &DirectName,
ctx: &Context,
pos: &Position
) -> TypeResult<bool>
impl Hash for DirectName
[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 IsSuperSet<DirectName> for DirectName
[src]
fn is_superset_of(
&self,
other: &DirectName,
ctx: &Context,
pos: &Position
) -> TypeResult<bool>
[src]
&self,
other: &DirectName,
ctx: &Context,
pos: &Position
) -> TypeResult<bool>
impl<'_> LookupClass<&'_ DirectName, Class> for Context
[src]
fn class(
&self,
class: &DirectName,
pos: &Position
) -> Result<Class, Vec<TypeErr>>
[src]
&self,
class: &DirectName,
pos: &Position
) -> Result<Class, Vec<TypeErr>>
Look up union of GenericClass and substitute generics to yield set of Classes.
impl<'_> LookupFunction<&'_ DirectName, Function> for Context
[src]
fn function(
&self,
function: &DirectName,
pos: &Position
) -> Result<Function, Vec<TypeErr>>
[src]
&self,
function: &DirectName,
pos: &Position
) -> Result<Function, Vec<TypeErr>>
Look up a function and substitutes generics to yield a Function.
If function does not exist, treat function as constructor and see if there exists a class with the same name.
impl PartialEq<DirectName> for DirectName
[src]
fn eq(&self, other: &DirectName) -> bool
[src]
fn ne(&self, other: &DirectName) -> bool
[src]
impl StructuralEq for DirectName
[src]
impl StructuralPartialEq for DirectName
[src]
impl<'_> TryFrom<&'_ AST> for DirectName
[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 DirectName
[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 Union<DirectName> for NameUnion
[src]
fn union(&self, name: &DirectName) -> Self
[src]
Auto Trait Implementations
impl RefUnwindSafe for DirectName
impl Send for DirectName
impl Sync for DirectName
impl Unpin for DirectName
impl UnwindSafe for DirectName
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>,