[−][src]Struct mamba::parse::ast::AST
Wrapper of Node, and its start end end position in the source code. The start and end positions can be used to generate useful error messages.
Fields
pos: Position
node: Node
Methods
impl AST
[src]
pub fn new(pos: &Position, node: Node) -> AST
[src]
pub fn equal_structure(&self, other: &AST) -> bool
[src]
Trait Implementations
impl Clone for AST
[src]
impl Debug for AST
[src]
impl Eq for AST
[src]
impl Hash for AST
[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 PartialEq<AST> for AST
[src]
impl StructuralEq for AST
[src]
impl StructuralPartialEq for AST
[src]
impl<'_> TryFrom<&'_ AST> for ClassArgument
[src]
type Error = Vec<TypeErr>
The type returned in the event of a conversion error.
fn try_from(ast: &AST) -> TypeResult<ClassArgument>
[src]
impl<'_> TryFrom<&'_ AST> for GenericFunctionArg
[src]
type Error = Vec<TypeErr>
The type returned in the event of a conversion error.
fn try_from(ast: &AST) -> TypeResult<GenericFunctionArg>
[src]
Construct FunctionArg from AST.
impl<'_> TryFrom<&'_ AST> for GenericClass
[src]
type Error = Vec<TypeErr>
The type returned in the event of a conversion error.
fn try_from(class: &AST) -> TypeResult<GenericClass>
[src]
impl<'_> TryFrom<&'_ AST> for GenericField
[src]
type Error = Vec<TypeErr>
The type returned in the event of a conversion error.
fn try_from(ast: &AST) -> TypeResult<GenericField>
[src]
impl<'_> TryFrom<&'_ AST> for GenericFields
[src]
type Error = Vec<TypeErr>
The type returned in the event of a conversion error.
fn try_from(ast: &AST) -> TypeResult<GenericFields>
[src]
impl<'_> TryFrom<&'_ AST> for GenericFunction
[src]
type Error = Vec<TypeErr>
The type returned in the event of a conversion error.
fn try_from(ast: &AST) -> TypeResult<GenericFunction>
[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<&'_ AST> for Name
[src]
type Error = Vec<TypeErr>
The type returned in the event of a conversion error.
fn try_from(ast: &AST) -> TypeResult<Name>
[src]
Try to construct Name from AST.
In the case of Generics, isa field is ignored and we only look at the name of the generic itself.
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<&'_ AST> for GenericParent
[src]
type Error = Vec<TypeErr>
The type returned in the event of a conversion error.
fn try_from(ast: &AST) -> TypeResult<GenericParent>
[src]
Auto Trait Implementations
impl RefUnwindSafe for AST
impl Send for AST
impl Sync for AST
impl Unpin for AST
impl UnwindSafe for AST
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, 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>,