Struct syn::TypeTraitObject
source · pub struct TypeTraitObject {
pub dyn_token: Option<Dyn>,
pub bounds: Punctuated<TypeParamBound, Add>,
}
Expand description
A trait object type dyn Bound1 + Bound2 + Bound3
where Bound
is a
trait or a lifetime.
This type is available only 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>
Trait Implementations§
source§impl Clone for TypeTraitObject
impl Clone for TypeTraitObject
source§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.