pub struct TypeParam {
pub name: String,
pub bounds: Vec<String>,
}Expand description
A type parameter of a generic function, with the traits of its bounds (the last segments of their paths).
Fields§
§name: String§bounds: Vec<String>Trait Implementations§
Auto Trait Implementations§
impl Forget for TypeParam
impl Freeze for TypeParam
impl Move for TypeParam
impl RefUnwindSafe for TypeParam
impl Send for TypeParamwhere
RawVecInner: Send,
impl Sync for TypeParamwhere
RawVecInner: Sync,
impl Unpin for TypeParam
impl UnsafeUnpin for TypeParamwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for TypeParamwhere
RawVecInner: UnwindSafe,
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