Struct syn::TypeImplTrait
source · pub struct TypeImplTrait {
pub impl_token: Impl,
pub bounds: Punctuated<TypeParamBound, Add>,
}
Expand description
An impl Bound1 + Bound2 + Bound3
type where Bound
is a trait or
a lifetime.
This type is available if Syn is built with the "derive"
or
"full"
feature.
Fields
impl_token: Impl
bounds: Punctuated<TypeParamBound, Add>
Trait Implementations
sourceimpl Clone for TypeImplTrait
impl Clone for TypeImplTrait
sourcefn clone(&self) -> TypeImplTrait
fn clone(&self) -> TypeImplTrait
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for TypeImplTrait
impl Debug for TypeImplTrait
sourceimpl From<TypeImplTrait> for Type
impl From<TypeImplTrait> for Type
sourcefn from(e: TypeImplTrait) -> Type
fn from(e: TypeImplTrait) -> Type
Converts to this type from the input type.
sourceimpl Hash for TypeImplTrait
impl Hash for TypeImplTrait
sourceimpl Parse for TypeImplTrait
impl Parse for TypeImplTrait
fn parse(input: ParseStream<'_>) -> Result<Self>
sourceimpl PartialEq<TypeImplTrait> for TypeImplTrait
impl PartialEq<TypeImplTrait> for TypeImplTrait
sourcefn eq(&self, other: &TypeImplTrait) -> bool
fn eq(&self, other: &TypeImplTrait) -> bool
sourceimpl ToTokens for TypeImplTrait
impl ToTokens for TypeImplTrait
sourcefn to_tokens(&self, tokens: &mut TokenStream)
fn to_tokens(&self, tokens: &mut TokenStream)
sourcefn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
impl Eq for TypeImplTrait
impl StructuralEq for TypeImplTrait
impl StructuralPartialEq for TypeImplTrait
Auto Trait Implementations
impl RefUnwindSafe for TypeImplTrait
impl !Send for TypeImplTrait
impl !Sync for TypeImplTrait
impl Unpin for TypeImplTrait
impl UnwindSafe for TypeImplTrait
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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
sourceimpl<T> Spanned for Twhere
T: ToTokens,
impl<T> Spanned for Twhere
T: ToTokens,
sourcefn span(&self) -> Span
fn span(&self) -> Span
Returns a
Span
covering the complete contents of this syntax tree
node, or Span::call_site()
if this node is empty. Read more