Struct ItemType
pub struct ItemType { pub attrs: Vec<Attribute>, pub vis: Visibility, pub modifiers: TypeModifiers, pub type_token: Type, pub ident: Ident, pub generics: Generics, pub eq_token: Eq, pub ty: Box<Type>, pub semi_token: Semi, pub where_clause_placement: WhereClausePlacement }
A type alias: type Result<T> = core::result::Result<T, MyError>.
Fields
attrs: Vec<Attribute>vis: Visibilitymodifiers: TypeModifiers(Non-exhaustive) Additional optional information about a type alias.
type_token: Typeident: Identgenerics: Genericseq_token: Eqty: Box<Type>semi_token: Semiwhere_clause_placement: WhereClausePlacement
Trait Implementations
impl Clone for ItemType
fn clone(&self) -> Self
impl Parse for ItemType
fn parse(input: ParseStream<'_>) -> Result<Self>
impl ToTokens for ItemType
fn to_tokens(&self, tokens: &mut TokenStream)
Auto Trait Implementations
impl !Send for ItemType
impl !Sync for ItemType
impl Freeze for ItemType
impl RefUnwindSafe for ItemType
impl Unpin for ItemType
impl UnsafeUnpin for ItemType
impl UnwindSafe for ItemType
Blanket Implementations
impl<T> Any for ItemType
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for ItemType
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for ItemType
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for ItemType
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for ItemType
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Spanned for ItemType
where
T: Spanned + ?Sized,
fn span(&self) -> Span
impl<T> ToOwned for ItemType
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for ItemType
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for ItemType
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for ItemType
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>