pub struct TypeParam<'shape> {
pub name: &'shape str,
pub shape: fn() -> &'shape Shape<'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: &'shape strThe name of the type parameter (e.g., T).
shape: fn() -> &'shape Shape<'shape>The shape of the type parameter (e.g. String)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'shape> Freeze for TypeParam<'shape>
impl<'shape> RefUnwindSafe for TypeParam<'shape>
impl<'shape> Send for TypeParam<'shape>
impl<'shape> Sync for TypeParam<'shape>
impl<'shape> Unpin for TypeParam<'shape>
impl<'shape> UnwindSafe for TypeParam<'shape>
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