[−][src]Enum dora_parser::ast::Type
Variants
TypeSelf(TypeSelfType)TypeBasic(TypeBasicType)TypeTuple(TypeTupleType)TypeLambda(TypeLambdaType)Methods
impl Type[src]
pub fn create_self(id: NodeId, pos: Position, span: Span) -> Type[src]
pub fn create_basic(
id: NodeId,
pos: Position,
span: Span,
name: Name,
params: Vec<Box<Type>>
) -> Type[src]
id: NodeId,
pos: Position,
span: Span,
name: Name,
params: Vec<Box<Type>>
) -> Type
pub fn create_fct(
id: NodeId,
pos: Position,
span: Span,
params: Vec<Box<Type>>,
ret: Box<Type>
) -> Type[src]
id: NodeId,
pos: Position,
span: Span,
params: Vec<Box<Type>>,
ret: Box<Type>
) -> Type
pub fn create_tuple(
id: NodeId,
pos: Position,
span: Span,
subtypes: Vec<Box<Type>>
) -> Type[src]
id: NodeId,
pos: Position,
span: Span,
subtypes: Vec<Box<Type>>
) -> Type
pub fn to_basic(&self) -> Option<&TypeBasicType>[src]
pub fn to_basic_without_type_params(&self) -> Option<Name>[src]
pub fn to_tuple(&self) -> Option<&TypeTupleType>[src]
pub fn to_fct(&self) -> Option<&TypeLambdaType>[src]
pub fn to_string(&self, interner: &Interner) -> String[src]
pub fn pos(&self) -> Position[src]
pub fn id(&self) -> NodeId[src]
Trait Implementations
Auto Trait Implementations
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
impl RefUnwindSafe for Type
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> From<T> for T[src]
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<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> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,