pub struct Lifetime {
pub ident: Ident,
pub constraint: Vec<TokenTree>,
}
Expand description
a lifetime generic parameter, e.g. struct Foo<'a> { ... }
Fields§
§ident: Ident
The ident of this lifetime
constraint: Vec<TokenTree>
Any constraints that this lifetime may have
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Lifetime
impl RefUnwindSafe for Lifetime
impl !Send for Lifetime
impl !Sync for Lifetime
impl Unpin for Lifetime
impl UnwindSafe for Lifetime
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more