pub struct TypeParam {
pub name: Ident,
pub bounds: Vec<TypeExpr>,
pub span: Span,
}Expand description
A generic type parameter declaration: <T: Numeric>.
Appears in function, struct, enum, trait, and impl declarations.
Fields§
§name: IdentParameter name (e.g., T).
bounds: Vec<TypeExpr>Trait bounds on the parameter.
span: SpanSource span.
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 UnsafeUnpin 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