Struct marker_api::ast::LifetimeParam
source · #[repr(C)]pub struct LifetimeParam<'ast> { /* private fields */ }Expand description
A lifetime parameter like the 'long and 'short: 'long in:
// vvvvv
fn foo<'long, 'short: 'long>() {}
// ^^^^^^^^^^^^Implementations§
Trait Implementations§
source§impl<'ast> Debug for LifetimeParam<'ast>
impl<'ast> Debug for LifetimeParam<'ast>
source§impl<'ast> From<&'ast LifetimeParam<'ast>> for GenericParamKind<'ast>
impl<'ast> From<&'ast LifetimeParam<'ast>> for GenericParamKind<'ast>
source§fn from(src: &'ast LifetimeParam<'ast>) -> Self
fn from(src: &'ast LifetimeParam<'ast>) -> Self
Converts to this type from the input type.
source§impl<'ast> SynGenericParamData<'ast> for LifetimeParam<'ast>
impl<'ast> SynGenericParamData<'ast> for LifetimeParam<'ast>
Auto Trait Implementations§
impl<'ast> RefUnwindSafe for LifetimeParam<'ast>
impl<'ast> Send for LifetimeParam<'ast>
impl<'ast> Sync for LifetimeParam<'ast>
impl<'ast> Unpin for LifetimeParam<'ast>
impl<'ast> UnwindSafe for LifetimeParam<'ast>
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