Struct gluon_base::ast::TypeBinding
source · pub struct TypeBinding<'ast, Id> {
pub metadata: BaseMetadata<'ast>,
pub name: Spanned<Id, BytePos>,
pub alias: SpannedAlias<'ast, Id>,
pub finalized_alias: Option<Alias<Id, ArcType<Id>>>,
}
Fields§
§metadata: BaseMetadata<'ast>
§name: Spanned<Id, BytePos>
§alias: SpannedAlias<'ast, Id>
§finalized_alias: Option<Alias<Id, ArcType<Id>>>
Implementations§
Trait Implementations§
source§impl<'ast, Id> AstAlloc<'ast, Id> for TypeBinding<'ast, Id>
impl<'ast, Id> AstAlloc<'ast, Id> for TypeBinding<'ast, Id>
fn alloc(self, arena: &'ast Arena<'ast, Id>) -> &'ast mut Self
fn alloc_extend( iter: impl IntoIterator<Item = Self>, arena: &'ast Arena<'ast, Id> ) -> &'ast mut [Self]
source§impl<'ast, Id> AstClone<'ast, Id> for TypeBinding<'ast, Id>
impl<'ast, Id> AstClone<'ast, Id> for TypeBinding<'ast, Id>
source§impl<'ast, Id: Debug> Debug for TypeBinding<'ast, Id>
impl<'ast, Id: Debug> Debug for TypeBinding<'ast, Id>
source§impl<'ast, Id: PartialEq> PartialEq for TypeBinding<'ast, Id>
impl<'ast, Id: PartialEq> PartialEq for TypeBinding<'ast, Id>
source§fn eq(&self, other: &TypeBinding<'ast, Id>) -> bool
fn eq(&self, other: &TypeBinding<'ast, Id>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'ast, Id: Eq> Eq for TypeBinding<'ast, Id>
impl<'ast, Id> StructuralEq for TypeBinding<'ast, Id>
impl<'ast, Id> StructuralPartialEq for TypeBinding<'ast, Id>
Auto Trait Implementations§
impl<'ast, Id> RefUnwindSafe for TypeBinding<'ast, Id>where
Id: RefUnwindSafe,
impl<'ast, Id> Send for TypeBinding<'ast, Id>
impl<'ast, Id> Sync for TypeBinding<'ast, Id>
impl<'ast, Id> Unpin for TypeBinding<'ast, Id>where
Id: Unpin,
impl<'ast, Id> !UnwindSafe for TypeBinding<'ast, Id>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more