Struct syn::PredicateLifetime
source · [−]pub struct PredicateLifetime {
pub lifetime: Lifetime,
pub colon_token: Colon,
pub bounds: Punctuated<Lifetime, Add>,
}Expand description
A lifetime predicate in a where clause: 'a: 'b + 'c.
This type is available only if Syn is built with the "derive" or
"full" feature.
Fields
lifetime: Lifetimecolon_token: Colonbounds: Punctuated<Lifetime, Add>Trait Implementations
sourceimpl From<PredicateLifetime> for WherePredicate
impl From<PredicateLifetime> for WherePredicate
sourcefn from(e: PredicateLifetime) -> WherePredicate
fn from(e: PredicateLifetime) -> WherePredicate
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for PredicateLifetime
impl !Send for PredicateLifetime
impl !Sync for PredicateLifetime
impl Unpin for PredicateLifetime
impl UnwindSafe for PredicateLifetime
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more