Enum syn::WherePredicate
source · pub enum WherePredicate {
Type(PredicateType),
Lifetime(PredicateLifetime),
Eq(PredicateEq),
}
Available on crate features
full
or derive
only.Expand description
A single predicate in a where
clause: T: Deserialize<'de>
.
This type is available only if Syn is built with the "derive"
or "full"
feature.
Syntax tree enum
This type is a syntax tree enum.
Variants§
Type(PredicateType)
A type predicate in a where
clause: for<'c> Foo<'c>: Trait<'c>
.
Lifetime(PredicateLifetime)
A lifetime predicate in a where
clause: 'a: 'b + 'c
.
Eq(PredicateEq)
An equality predicate in a where
clause (unsupported).
Trait Implementations§
source§impl Clone for WherePredicate
Available on crate feature clone-impls
only.
impl Clone for WherePredicate
Available on crate feature
clone-impls
only.source§impl Debug for WherePredicate
Available on crate feature extra-traits
only.
impl Debug for WherePredicate
Available on crate feature
extra-traits
only.source§impl From<PredicateEq> for WherePredicate
impl From<PredicateEq> for WherePredicate
source§fn from(e: PredicateEq) -> WherePredicate
fn from(e: PredicateEq) -> WherePredicate
Converts to this type from the input type.
source§impl From<PredicateLifetime> for WherePredicate
impl From<PredicateLifetime> for WherePredicate
source§fn from(e: PredicateLifetime) -> WherePredicate
fn from(e: PredicateLifetime) -> WherePredicate
Converts to this type from the input type.
source§impl From<PredicateType> for WherePredicate
impl From<PredicateType> for WherePredicate
source§fn from(e: PredicateType) -> WherePredicate
fn from(e: PredicateType) -> WherePredicate
Converts to this type from the input type.
source§impl Hash for WherePredicate
Available on crate feature extra-traits
only.
impl Hash for WherePredicate
Available on crate feature
extra-traits
only.source§impl Parse for WherePredicate
Available on crate feature parsing
only.
impl Parse for WherePredicate
Available on crate feature
parsing
only.fn parse(input: ParseStream<'_>) -> Result<Self>
source§impl PartialEq<WherePredicate> for WherePredicate
Available on crate feature extra-traits
only.
impl PartialEq<WherePredicate> for WherePredicate
Available on crate feature
extra-traits
only.source§impl ToTokens for WherePredicate
Available on crate feature printing
only.
impl ToTokens for WherePredicate
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 WherePredicate
Available on crate feature
extra-traits
only.