Struct syn::TypeTraitObject [−][src]
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 only if Syn is built with the "derive" or
"full" feature.
Fields
dyn_token: Option<Dyn>bounds: Punctuated<TypeParamBound, Add>Implementations
impl TypeTraitObject[src]
impl TypeTraitObject[src]pub fn without_plus(input: ParseStream<'_>) -> Result<Self>[src]
Trait Implementations
impl Clone for TypeTraitObject[src]
impl Clone for TypeTraitObject[src]impl Debug for TypeTraitObject[src]
impl Debug for TypeTraitObject[src]impl From<TypeTraitObject> for Type[src]
impl From<TypeTraitObject> for Type[src]fn from(e: TypeTraitObject) -> Type[src]
fn from(e: TypeTraitObject) -> Type[src]Performs the conversion.
impl Hash for TypeTraitObject[src]
impl Hash for TypeTraitObject[src]impl Parse for TypeTraitObject[src]
impl Parse for TypeTraitObject[src]fn parse(input: ParseStream<'_>) -> Result<Self>[src]
impl PartialEq<TypeTraitObject> for TypeTraitObject[src]
impl PartialEq<TypeTraitObject> for TypeTraitObject[src]impl ToTokens for TypeTraitObject[src]
impl ToTokens for TypeTraitObject[src]fn to_tokens(&self, tokens: &mut TokenStream)[src]
fn to_tokens(&self, tokens: &mut TokenStream)[src]Write self to the given TokenStream. Read more
fn to_token_stream(&self) -> TokenStream[src]
fn to_token_stream(&self) -> TokenStream[src]Convert self directly into a TokenStream object. Read more
fn into_token_stream(self) -> TokenStream[src]
fn into_token_stream(self) -> TokenStream[src]Convert self directly into a TokenStream object. Read more
impl Eq for TypeTraitObject[src]
Auto Trait Implementations
impl RefUnwindSafe for TypeTraitObject
impl !Send for TypeTraitObject
impl !Sync for TypeTraitObject
impl Unpin for TypeTraitObject
impl UnwindSafe for TypeTraitObject
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more