pub enum TyKind {
Builtin,
Model,
Union,
Newtype,
}Expand description
What a declaration is, for a macro asking what it may look into.
Variants§
Builtin
The language’s own: Int, Str, list, Map, Option, and everything else in the
prelude. A macro may read its arguments and not its insides.
Model
Union
Newtype
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 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