pub enum Kind {
Void,
Int,
Float,
Ptr,
}Expand description
Which of the four kinds a Type is.
This is the discriminant on its own, for matching. It says nothing about the width or the lane count, which is why it is separate from the type rather than being the type.
Variants§
Void
No value. The result type of a store, of a call to a void function, and of every
terminator.
Int
An integer of some width, with no signedness.
Float
A floating point value in one of the formats of Float.
Ptr
An address, with no pointee.
Trait Implementations§
impl Copy for Kind
impl Eq for Kind
Source§impl Ord for Kind
impl Ord for Kind
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Kind
impl PartialOrd for Kind
impl StructuralPartialEq for Kind
Auto Trait Implementations§
impl Freeze for Kind
impl RefUnwindSafe for Kind
impl Send for Kind
impl Sync for Kind
impl Unpin for Kind
impl UnsafeUnpin for Kind
impl UnwindSafe for Kind
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