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<'de, Id, T> DeserializeState<'de, Seed<Id, T>> for Generic<Id>
impl<'de, Id, T> DeserializeState<'de, Seed<Id, T>> for Generic<Id>
source§fn deserialize_state<__D>(
__seed: &mut Seed<Id, T>,
__deserializer: __D
) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize_state<__D>(
__seed: &mut Seed<Id, T>,
__deserializer: __D
) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserializes
Self
using seed
and the deserializer
source§impl<Id: PartialEq> PartialEq for Generic<Id>
impl<Id: PartialEq> PartialEq for Generic<Id>
source§impl<Id> SerializeState<SeSeed> for Generic<Id>where
Id: SerializeState<SeSeed>,
impl<Id> SerializeState<SeSeed> for Generic<Id>where
Id: SerializeState<SeSeed>,
source§fn serialize_state<__S>(
&self,
__serializer: __S,
__seed: &SeSeed
) -> Result<__S::Ok, __S::Error>where
__S: Serializer,
fn serialize_state<__S>(
&self,
__serializer: __S,
__seed: &SeSeed
) -> Result<__S::Ok, __S::Error>where
__S: Serializer,
Serializes
self
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