pub struct Type {
pub id: TypeId,
pub name: &'static str,
}Expand description
A run-time representation of a type. Used only for run-time type inference and checking of handler chains.
See crate::type_check.
Fields§
§id: TypeIdThe unique type identifier.
name: &'static strThe type name used for printing.
Implementations§
Trait Implementations§
Source§impl Ord for Type
impl Ord for Type
Source§fn cmp(&self, other: &Self) -> Ordering
fn cmp(&self, other: &Self) -> Ordering
The total order is done by type names for better diagnostics.
1.21.0 · 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 Type
impl PartialOrd for Type
impl Copy for Type
impl Eq for Type
Auto Trait Implementations§
impl Freeze for Type
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
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