pub enum TyKind {
Int,
Sym,
Str,
List,
Map,
Fun,
Mod,
}Expand description
The value kinds whose prototype is a builtin module, so that as <Proto>
against it compiles to a discriminant test (see ProtoRef::Kind).
Variants§
Int
Sym
Str
List
Map
Fun
Mod
A module value, whose prototype is __Mod. It has no as Mod history —
the kind set was closed before modules existed — and is here because
__Mod is a builtin module like the rest, so the fast form covers it.
Implementations§
Trait Implementations§
impl Copy for TyKind
impl Eq for TyKind
impl StructuralPartialEq for TyKind
Auto Trait Implementations§
impl Freeze for TyKind
impl RefUnwindSafe for TyKind
impl Send for TyKind
impl Sync for TyKind
impl Unpin for TyKind
impl UnsafeUnpin for TyKind
impl UnwindSafe for TyKind
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