Struct syn::TypeTraitObject
source · 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(input: ParseStream<'_>) -> Result<Self>
pub fn parse(input: ParseStream<'_>, allow_plus: bool) -> Result<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.