Struct syn::TypeTraitObject
source · pub struct TypeTraitObject {
pub dyn_token: Option<Dyn>,
pub bounds: Punctuated<TypeParamBound, Add>,
}
Available on crate features
full
or derive
only.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>
Available on crate feature
parsing
only.Trait Implementations§
source§impl Clone for TypeTraitObject
Available on crate feature clone-impls
only.
impl Clone for TypeTraitObject
Available on crate feature
clone-impls
only.source§impl Debug for TypeTraitObject
Available on crate feature extra-traits
only.
impl Debug for TypeTraitObject
Available on crate feature
extra-traits
only.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
Available on crate feature extra-traits
only.
impl Hash for TypeTraitObject
Available on crate feature
extra-traits
only.source§impl Parse for TypeTraitObject
Available on crate feature parsing
only.
impl Parse for TypeTraitObject
Available on crate feature
parsing
only.fn parse(input: ParseStream<'_>) -> Result<Self>
source§impl PartialEq<TypeTraitObject> for TypeTraitObject
Available on crate feature extra-traits
only.
impl PartialEq<TypeTraitObject> for TypeTraitObject
Available on crate feature
extra-traits
only.source§impl ToTokens for TypeTraitObject
Available on crate feature printing
only.
impl ToTokens for TypeTraitObject
Available on crate feature
printing
only.source§fn to_tokens(&self, tokens: &mut TokenStream)
fn to_tokens(&self, tokens: &mut TokenStream)
source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
source§fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
impl Eq for TypeTraitObject
Available on crate feature
extra-traits
only.