pub enum SingleTypeArg {
None,
Infer,
Explicit(Box<Type>),
}Expand description
Single terminal type argument split from a path.
Variants§
None
The path’s final segment had no generic arguments.
Infer
The path’s final segment used _ as its only type argument.
Explicit(Box<Type>)
The path’s final segment used one explicit type argument.
Implementations§
Source§impl SingleTypeArg
impl SingleTypeArg
Trait Implementations§
Source§impl Clone for SingleTypeArg
impl Clone for SingleTypeArg
Source§fn clone(&self) -> SingleTypeArg
fn clone(&self) -> SingleTypeArg
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !Send for SingleTypeArg
impl !Sync for SingleTypeArg
impl Freeze for SingleTypeArg
impl RefUnwindSafe for SingleTypeArg
impl Unpin for SingleTypeArg
impl UnsafeUnpin for SingleTypeArg
impl UnwindSafe for SingleTypeArg
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