Struct gluon_base::types::AliasData
source · pub struct AliasData<Id, T: TypePtr<Id = Id>> {
pub name: Id,
pub is_implicit: bool,
/* private fields */
}
Fields§
§name: Id
§is_implicit: bool
Implementations§
source§impl<Id, T> AliasData<Id, T>where
T: TypePtr<Id = Id>,
impl<Id, T> AliasData<Id, T>where
T: TypePtr<Id = Id>,
sourcepub fn unresolved_type(&self) -> &T
pub fn unresolved_type(&self) -> &T
Returns the type aliased by self
with out Type::Ident
resolved to their actual
Type::Alias
representation
pub fn unresolved_type_mut(&mut self) -> &mut T
pub fn is_implicit(&self) -> bool
source§impl<Id, T> AliasData<Id, T>
impl<Id, T> AliasData<Id, T>
pub fn self_type(&self, context: &mut (impl TypeContext<Id, T> + ?Sized)) -> T
Trait Implementations§
source§impl<'de, Id, T> DeserializeState<'de, Seed<Id, T>> for AliasData<Id, T>
impl<'de, Id, T> DeserializeState<'de, Seed<Id, T>> for AliasData<Id, T>
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, T: PartialEq + TypePtr<Id = Id>> PartialEq for AliasData<Id, T>
impl<Id: PartialEq, T: PartialEq + TypePtr<Id = Id>> PartialEq for AliasData<Id, T>
source§impl<Id, T> SerializeState<SeSeed> for AliasData<Id, T>
impl<Id, T> SerializeState<SeSeed> for AliasData<Id, T>
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, T: Eq + TypePtr<Id = Id>> Eq for AliasData<Id, T>
impl<Id, T: TypePtr<Id = Id>> StructuralEq for AliasData<Id, T>
impl<Id, T: TypePtr<Id = Id>> StructuralPartialEq for AliasData<Id, T>
Auto Trait Implementations§
impl<Id, T> RefUnwindSafe for AliasData<Id, T>
impl<Id, T> Send for AliasData<Id, T>
impl<Id, T> Sync for AliasData<Id, T>
impl<Id, T> Unpin for AliasData<Id, T>
impl<Id, T> UnwindSafe for AliasData<Id, T>
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