pub enum TypeName {
Prim(Prim),
Any,
Never,
SelfTy,
Infer,
}Expand description
A type keyword’s meaning.
§Examples
use hir_lang::Prim;
use lower_lang::TypeName;
assert_eq!(TypeName::Prim(Prim::I64), TypeName::Prim(Prim::I64));Variants§
Prim(Prim)
A primitive type.
Any
The gradual dynamic type (mixed, any).
Never
The type of expressions that never complete (never, !).
SelfTy
Self.
Infer
A type to infer (_, auto).
Trait Implementations§
impl Copy for TypeName
impl Eq for TypeName
impl StructuralPartialEq for TypeName
Auto Trait Implementations§
impl Freeze for TypeName
impl RefUnwindSafe for TypeName
impl Send for TypeName
impl Sync for TypeName
impl Unpin for TypeName
impl UnsafeUnpin for TypeName
impl UnwindSafe for TypeName
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