pub struct LifetimeParser;Implementations§
Source§impl LifetimeParser
impl LifetimeParser
pub fn has_lifetime(ty: &Type) -> bool
pub fn get_lifetime(ty: &Type) -> Option<Lifetime>
pub fn get_generic_lifetimes(generics: &Generics) -> Vec<Lifetime>
Auto Trait Implementations§
impl Freeze for LifetimeParser
impl RefUnwindSafe for LifetimeParser
impl Send for LifetimeParser
impl Sync for LifetimeParser
impl Unpin for LifetimeParser
impl UnsafeUnpin for LifetimeParser
impl UnwindSafe for LifetimeParser
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