Struct syn::PredicateType [−][src]
pub struct PredicateType {
pub lifetimes: Option<BoundLifetimes>,
pub bounded_ty: Type,
pub colon_token: Colon,
pub bounds: Punctuated<TypeParamBound, Add>,
}Expand description
A type predicate in a where clause: for<'c> Foo<'c>: Trait<'c>.
This type is available only if Syn is built with the "derive" or
"full" feature.
Fields
lifetimes: Option<BoundLifetimes>Any lifetimes from a for binding
bounded_ty: TypeThe type being bounded
colon_token: Colonbounds: Punctuated<TypeParamBound, Add>Trait and lifetime bounds (Clone+Send+'static)
Trait Implementations
impl Clone for PredicateType[src]
impl Clone for PredicateType[src]impl Debug for PredicateType[src]
impl Debug for PredicateType[src]impl From<PredicateType> for WherePredicate[src]
impl From<PredicateType> for WherePredicate[src]fn from(e: PredicateType) -> WherePredicate[src]
fn from(e: PredicateType) -> WherePredicate[src]Performs the conversion.
impl Hash for PredicateType[src]
impl Hash for PredicateType[src]impl PartialEq<PredicateType> for PredicateType[src]
impl PartialEq<PredicateType> for PredicateType[src]impl ToTokens for PredicateType[src]
impl ToTokens for PredicateType[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 PredicateType[src]
Auto Trait Implementations
impl RefUnwindSafe for PredicateType
impl !Send for PredicateType
impl !Sync for PredicateType
impl Unpin for PredicateType
impl UnwindSafe for PredicateType
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