pub struct Generics {
pub lifetime_params: Vec<LifetimeParam>,
pub type_params: Vec<TypeParam>,
}Fields§
§lifetime_params: Vec<LifetimeParam>§type_params: Vec<TypeParam>Implementations§
Source§impl Generics
impl Generics
pub fn mutating_type_params(&self, mutate: impl Fn(&mut TypeParam)) -> Self
Source§impl Generics
impl Generics
pub fn removing_eq_type(&self) -> Self
pub fn removing_bounds_and_eq_type(&self) -> Self
Trait Implementations§
Source§impl TokenBuilderExtend for Generics
impl TokenBuilderExtend for Generics
fn add_to(&self, tb: &mut TokenBuilder)
Auto Trait Implementations§
impl !Send for Generics
impl !Sync for Generics
impl Freeze for Generics
impl RefUnwindSafe for Generics
impl Unpin for Generics
impl UnsafeUnpin for Generics
impl UnwindSafe for Generics
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