Struct gluon_base::types::Generic
source · pub struct Generic<Id> {
pub id: Id,
pub kind: ArcKind,
}
Expand description
FIXME Distinguish generic id’s so we only need to compare them by id
(currently they will get
the wrong kind assigned to them otherwise)
Fields§
§id: Id
§kind: ArcKind
Implementations§
Trait Implementations§
source§impl<'ast, Id> AstAlloc<'ast, Id> for Generic<Id>
impl<'ast, Id> AstAlloc<'ast, Id> for Generic<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<Id: PartialEq> PartialEq<Generic<Id>> for Generic<Id>
impl<Id: PartialEq> PartialEq<Generic<Id>> for Generic<Id>
impl<Id: Eq> Eq for Generic<Id>
impl<Id> StructuralEq for Generic<Id>
impl<Id> StructuralPartialEq for Generic<Id>
Auto Trait Implementations§
impl<Id> RefUnwindSafe for Generic<Id>where Id: RefUnwindSafe,
impl<Id> Send for Generic<Id>where Id: Send,
impl<Id> Sync for Generic<Id>where Id: Sync,
impl<Id> Unpin for Generic<Id>where Id: Unpin,
impl<Id> UnwindSafe for Generic<Id>where Id: UnwindSafe,
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