pub struct TypeDef {
pub attrs: AttrSet,
pub ctor: TypeCtor,
pub ctor_args: SmallVec<[TypeCtorArg; 2]>,
}
Expand description
Definition for a Type
.
Fields§
§attrs: AttrSet
§ctor: TypeCtor
§ctor_args: SmallVec<[TypeCtorArg; 2]>
Trait Implementations§
source§impl InnerTransform for TypeDef
impl InnerTransform for TypeDef
fn inner_transform_with( &self, transformer: &mut impl Transformer ) -> Transformed<Self>
source§impl InnerVisit for TypeDef
impl InnerVisit for TypeDef
fn inner_visit_with<'a>(&'a self, visitor: &mut impl Visitor<'a>)
source§impl PartialEq<TypeDef> for TypeDef
impl PartialEq<TypeDef> for TypeDef
source§impl Print for TypeDef
impl Print for TypeDef
type Output = AttrsAndDef
fn print(&self, printer: &Printer<'_>) -> AttrsAndDef
impl Eq for TypeDef
impl StructuralEq for TypeDef
impl StructuralPartialEq for TypeDef
Auto Trait Implementations§
impl RefUnwindSafe for TypeDef
impl Send for TypeDef
impl Sync for TypeDef
impl Unpin for TypeDef
impl UnwindSafe for TypeDef
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
source§impl<'a, T, V> DynInnerVisit<'a, V> for Twhere
T: InnerVisit,
V: Visitor<'a>,
impl<'a, T, V> DynInnerVisit<'a, V> for Twhere T: InnerVisit, V: Visitor<'a>,
fn dyn_inner_visit_with(&'a self, visitor: &mut V)
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.