pub struct Generic {
pub name: Name,
pub variance: Option<Variance>,
pub lifetime: bool,
}Expand description
T, in T, out T, or a lifetime 'a.
Fields§
§name: Name§variance: Option<Variance>§lifetime: bool'a: a lifetime, not a type.
Trait Implementations§
impl StructuralPartialEq for Generic
Auto Trait Implementations§
impl Freeze for Generic
impl RefUnwindSafe for Generic
impl Send for Generic
impl Sync for Generic
impl Unpin for Generic
impl UnsafeUnpin for Generic
impl UnwindSafe for Generic
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