Enum impl_tools_lib::generics::WherePredicate
source · [−]pub enum WherePredicate {
Type(PredicateType),
Lifetime(PredicateLifetime),
}
Expand description
A single predicate in a where
clause: T: Deserialize<'de>
.
This is a custom variant of syn::WherePredicate
which supports trait
as a parameter bound.
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
.
Trait Implementations
sourceimpl Debug for WherePredicate
impl Debug for WherePredicate
sourceimpl Parse for WherePredicate
impl Parse for WherePredicate
fn parse(input: ParseStream<'_>) -> Result<Self>
sourceimpl ToTokensSubst for WherePredicate
impl ToTokensSubst for WherePredicate
sourcefn to_tokens_subst(&self, tokens: &mut TokenStream, subst: &TokenStream)
fn to_tokens_subst(&self, tokens: &mut TokenStream, subst: &TokenStream)
Write self
to the given TokenStream
Auto Trait Implementations
impl RefUnwindSafe for WherePredicate
impl !Send for WherePredicate
impl !Sync for WherePredicate
impl Unpin for WherePredicate
impl UnwindSafe for WherePredicate
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more