pub struct TypeParam {
pub name: String,
pub pos: Pos,
pub underscore: bool,
}Expand description
A type parameter of an enum or a const, such as the T of enum List<T>.
Fields§
§name: StringThe name of the parameter.
pos: PosThe position of the name.
underscore: boolTrue for a parameter written with a leading underscore, which is allowed to be unused.
Trait Implementations§
impl Eq for TypeParam
impl StructuralPartialEq for TypeParam
Auto Trait Implementations§
impl Forget for TypeParam
impl Freeze for TypeParam
impl Move 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