pub struct TypeParam {
pub name: &'static str,
pub shape: &'static Shape,
}Expand description
Represents a lifetime parameter, e.g., 'a or 'a: 'b + 'c.
Note: these are subject to change — it’s a bit too stringly-typed for now.
Fields§
§name: &'static strThe name of the type parameter (e.g., T).
shape: &'static ShapeThe shape of the type parameter (e.g. String)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TypeParam
impl RefUnwindSafe for TypeParam
impl Send for TypeParam
impl Sync for TypeParam
impl Unpin for TypeParam
impl UnwindSafe for TypeParam
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