Enum rustc_hir::hir::PrimTy [−][src]
Expand description
Not represented directly in the AST; referred to by name through a ty_path
.
Variants
Int(IntTy)
Tuple Fields of Int
0: IntTy
Uint(UintTy)
Tuple Fields of Uint
0: UintTy
Float(FloatTy)
Tuple Fields of Float
0: FloatTy
Implementations
Like PrimTy::name
, but returns a &str instead of a symbol.
Used by clippy.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for PrimTy
impl UnwindSafe for PrimTy
Blanket Implementations
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 2 bytes
Size for each variant:
Int
: 1 byteUint
: 1 byteFloat
: 1 byteStr
: 0 bytesBool
: 0 bytesChar
: 0 bytes