pub struct TyToken {
pub kind: TyKind,
pub ref_tok: Option<TokenTree>,
pub mut_tok: Option<TokenTree>,
pub identifier: TokenTree,
pub dyn_tok: Option<TokenTree>,
pub lifetime: Option<LifetimeParam>,
pub generics: Option<Vec<TyToken>>,
pub bounds: Vec<Bound>,
}
Expand description
parsing the type of the filed, where this will be defined with the following grammar https://doc.rust-lang.org/stable/reference/types.html#type-expressions
Fields§
§kind: TyKind
§ref_tok: Option<TokenTree>
§mut_tok: Option<TokenTree>
§identifier: TokenTree
§dyn_tok: Option<TokenTree>
§lifetime: Option<LifetimeParam>
§generics: Option<Vec<TyToken>>
§bounds: Vec<Bound>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TyToken
impl RefUnwindSafe for TyToken
impl !Send for TyToken
impl !Sync for TyToken
impl Unpin for TyToken
impl UnwindSafe for TyToken
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