pub struct TypeTraitObject {
pub dyn_token: Option<Dyn>,
pub bounds: Punctuated<TypeParamBound, Add>,
}
Expand description
A trait object type Bound1 + Bound2 + Bound3
where Bound
is a
trait or a lifetime.
This type is available if Syn is built with the "derive"
or
"full"
feature.
Fields§
§dyn_token: Option<Dyn>
§bounds: Punctuated<TypeParamBound, Add>
Implementations§
Source§impl TypeTraitObject
impl TypeTraitObject
pub fn without_plus(i: Cursor<'_>) -> PResult<'_, Self>
Trait Implementations§
Source§impl Clone for TypeTraitObject
impl Clone for TypeTraitObject
Source§fn clone(&self) -> TypeTraitObject
fn clone(&self) -> TypeTraitObject
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TypeTraitObject
impl Debug for TypeTraitObject
Source§impl From<TypeTraitObject> for Type
impl From<TypeTraitObject> for Type
Source§fn from(e: TypeTraitObject) -> Type
fn from(e: TypeTraitObject) -> Type
Converts to this type from the input type.
Source§impl Hash for TypeTraitObject
impl Hash for TypeTraitObject
Source§impl PartialEq for TypeTraitObject
impl PartialEq for TypeTraitObject
Source§impl Synom for TypeTraitObject
impl Synom for TypeTraitObject
Source§impl ToTokens for TypeTraitObject
impl ToTokens for TypeTraitObject
impl Eq for TypeTraitObject
impl StructuralPartialEq for TypeTraitObject
Auto Trait Implementations§
impl Freeze for TypeTraitObject
impl RefUnwindSafe for TypeTraitObject
impl !Send for TypeTraitObject
impl !Sync for TypeTraitObject
impl Unpin for TypeTraitObject
impl UnwindSafe for TypeTraitObject
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Spanned for Twhere
T: ToTokens,
impl<T> Spanned for Twhere
T: ToTokens,
Source§fn 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.