Enum devise::syn::TypeParamBound [−][src]
pub enum TypeParamBound {
Trait(TraitBound),
Lifetime(Lifetime),
}
Expand description
A trait or lifetime used as a bound on a type parameter.
This type is available if Syn is built with the "derive"
or "full"
feature.
Variants
Trait(TraitBound)
Tuple Fields of Trait
0: TraitBound
Lifetime(Lifetime)
Tuple Fields of Lifetime
0: Lifetime
Trait Implementations
Performs the conversion.
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl !RefUnwindSafe for TypeParamBound
impl !Send for TypeParamBound
impl !Sync for TypeParamBound
impl Unpin for TypeParamBound
impl UnwindSafe for TypeParamBound
Blanket Implementations
Mutably borrows from an owned value. Read more
Returns a Span
covering the complete contents of this syntax tree
node, or Span::call_site()
if this node is empty. Read more