pub struct AdtParam {
pub name: Symbol,
pub var: TypeVar,
}Expand description
A named type parameter for an ADT (e.g. a in List a).
Fields§
§name: Symbol§var: TypeVarTrait Implementations§
Source§impl Ord for AdtParam
impl Ord for AdtParam
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for AdtParam
impl PartialOrd for AdtParam
impl Eq for AdtParam
impl StructuralPartialEq for AdtParam
Auto Trait Implementations§
impl Freeze for AdtParam
impl RefUnwindSafe for AdtParam
impl Send for AdtParam
impl Sync for AdtParam
impl Unpin for AdtParam
impl UnsafeUnpin for AdtParam
impl UnwindSafe for AdtParam
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