pub struct UnitPath {
pub std_type_ident: Option<StdTypeIdent>,
pub ident: Ident,
pub colon2_token: Option<PathSep>,
pub lt_token: Lt,
pub gt_token: Gt,
pub inner: Box<SimpleType>,
}
Expand description
For types of the form Option<T>
i.e. an outer identifier with a nested type inside angle brackets.
This type helps us destructure these patterns and unwrap/wrap proxies fully without dealing with the complicated full syn::Type enum
Fields§
§std_type_ident: Option<StdTypeIdent>
§ident: Ident
§colon2_token: Option<PathSep>
§lt_token: Lt
§gt_token: Gt
§inner: Box<SimpleType>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UnitPath
impl RefUnwindSafe for UnitPath
impl !Send for UnitPath
impl !Sync for UnitPath
impl Unpin for UnitPath
impl UnwindSafe for UnitPath
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