pub struct ItemType {
pub attrs: Vec<Attribute>,
pub vis: Visibility,
pub type_token: Type,
pub ident: Ident,
pub generics: Generics,
pub index_params: Option<IndexParams>,
pub eq_token: Eq,
pub ty: Box<Type>,
pub semi_token: Semi,
}Fields§
§attrs: Vec<Attribute>§vis: Visibility§type_token: Type§ident: Ident§generics: Generics§index_params: Option<IndexParams>§eq_token: Eq§ty: Box<Type>§semi_token: SemiImplementations§
Source§impl ItemType
impl ItemType
fn to_tokens_inner(&self, tokens: &mut TokenStream, mode: Mode)
Trait Implementations§
Source§impl ToTokens for ItemType
impl ToTokens for ItemType
Source§fn to_tokens(&self, tokens: &mut TokenStream)
fn to_tokens(&self, tokens: &mut TokenStream)
Source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Source§fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
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§
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<T> Spanned for T
impl<T> Spanned for T
Source§fn span(&self) -> Span
fn span(&self) -> Span
Returns a
Span covering the complete contents of this syntax tree
node, or Span::call_site() if this node is empty.