Enum syn::GenericMethodArgument
source · [−]Expand description
An individual generic argument to a method, like T
.
This type is available only if Syn is built with the "full"
feature.
Variants
Type(Type)
A type argument.
Const(Expr)
A const expression. Must be inside of a block.
NOTE: Identity expressions are represented as Type arguments, as they are indistinguishable syntactically.
Trait Implementations
sourceimpl Parse for GenericMethodArgument
impl Parse for GenericMethodArgument
fn parse(input: ParseStream<'_>) -> Result<Self>
Auto Trait Implementations
impl RefUnwindSafe for GenericMethodArgument
impl !Send for GenericMethodArgument
impl !Sync for GenericMethodArgument
impl Unpin for GenericMethodArgument
impl UnwindSafe for GenericMethodArgument
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more