Struct gluon_base::ast::AstType [−][src]
pub struct AstType<Id> { /* fields omitted */ }
Methods
impl<Id> AstType<Id>
[src]
impl<Id> AstType<Id>
pub fn with_comment<T>(
comment: T,
typ: Spanned<Type<Id, AstType<Id>>, BytePos>
) -> Self where
T: Into<Option<Comment>>,
[src]
pub fn with_comment<T>(
comment: T,
typ: Spanned<Type<Id, AstType<Id>>, BytePos>
) -> Self where
T: Into<Option<Comment>>,
pub fn set_comment<T>(&mut self, comment: T) where
T: Into<Option<Comment>>,
[src]
pub fn set_comment<T>(&mut self, comment: T) where
T: Into<Option<Comment>>,
pub fn into_inner(self) -> Type<Id, Self>
[src]
pub fn into_inner(self) -> Type<Id, Self>
pub fn as_mut(&mut self) -> &mut SpannedAstType<Id>
[src]
pub fn as_mut(&mut self) -> &mut SpannedAstType<Id>
pub fn params_mut(&mut self) -> &mut [Generic<Id>]
[src]
pub fn params_mut(&mut self) -> &mut [Generic<Id>]
pub fn remove_single_forall(&mut self) -> &mut AstType<Id>
[src]
pub fn remove_single_forall(&mut self) -> &mut AstType<Id>
Methods from Deref<Target = Type<Id, AstType<Id>>>
pub fn as_variable(&self) -> Option<&TypeVariable>
[src]
pub fn as_variable(&self) -> Option<&TypeVariable>
pub fn as_function(&self) -> Option<(&T, &T)>
[src]
pub fn as_function(&self) -> Option<(&T, &T)>
pub fn as_function_with_type(&self) -> Option<(ArgType, &T, &T)>
[src]
pub fn as_function_with_type(&self) -> Option<(ArgType, &T, &T)>
pub fn unapplied_args(&self) -> Cow<[T]> where
T: Clone,
[src]
pub fn unapplied_args(&self) -> Cow<[T]> where
T: Clone,
pub fn alias_ident(&self) -> Option<&Id>
[src]
pub fn alias_ident(&self) -> Option<&Id>
pub fn is_non_polymorphic_record(&self) -> bool
[src]
pub fn is_non_polymorphic_record(&self) -> bool
pub fn params(&self) -> &[Generic<Id>]
[src]
pub fn params(&self) -> &[Generic<Id>]
pub fn kind(&self) -> Cow<ArcKind>
[src]
pub fn kind(&self) -> Cow<ArcKind>
pub fn name(&self) -> Option<&SymbolRef>
[src]
pub fn name(&self) -> Option<&SymbolRef>
Returns the name of self
Example:
Option a => Option
Int => Int
Trait Implementations
impl<Id: Clone> Clone for AstType<Id>
[src]
impl<Id: Clone> Clone for AstType<Id>
fn clone(&self) -> AstType<Id>
[src]
fn clone(&self) -> AstType<Id>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<Id: Eq> Eq for AstType<Id>
[src]
impl<Id: Eq> Eq for AstType<Id>
impl<Id: PartialEq> PartialEq for AstType<Id>
[src]
impl<Id: PartialEq> PartialEq for AstType<Id>
fn eq(&self, other: &AstType<Id>) -> bool
[src]
fn eq(&self, other: &AstType<Id>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &AstType<Id>) -> bool
[src]
fn ne(&self, other: &AstType<Id>) -> bool
This method tests for !=
.
impl<Id: Debug> Debug for AstType<Id>
[src]
impl<Id: Debug> Debug for AstType<Id>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<Id> Deref for AstType<Id>
[src]
impl<Id> Deref for AstType<Id>
type Target = Type<Id, AstType<Id>>
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
fn deref(&self) -> &Self::Target
Dereferences the value.
impl<Id> DerefMut for AstType<Id>
[src]
impl<Id> DerefMut for AstType<Id>
impl<Id: AsRef<str>> Display for AstType<Id>
[src]
impl<Id: AsRef<str>> Display for AstType<Id>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<Id> From<Spanned<Type<Id, AstType<Id>>, BytePos>> for AstType<Id>
[src]
impl<Id> From<Spanned<Type<Id, AstType<Id>>, BytePos>> for AstType<Id>
impl<Id> From<Type<Id, AstType<Id>>> for AstType<Id>
[src]
impl<Id> From<Type<Id, AstType<Id>>> for AstType<Id>
impl<Id> HasSpan for AstType<Id>
[src]
impl<Id> HasSpan for AstType<Id>
impl<Id> Commented for AstType<Id>
[src]
impl<Id> Commented for AstType<Id>