#[repr(u8)]pub enum FloatTy {
F32 = 0,
F64 = 1,
}Expand description
A floating-point type (IEEE 754 binary32 or binary64).
§Examples
use bytecode_lang::FloatTy;
assert_eq!(FloatTy::F64.to_string(), "f64");
assert_eq!(FloatTy::from_code(0), Some(FloatTy::F32));Variants§
Implementations§
Trait Implementations§
impl Copy for FloatTy
impl Eq for FloatTy
Source§impl Ord for FloatTy
impl Ord for FloatTy
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 FloatTy
impl PartialOrd for FloatTy
impl StructuralPartialEq for FloatTy
Auto Trait Implementations§
impl Freeze for FloatTy
impl RefUnwindSafe for FloatTy
impl Send for FloatTy
impl Sync for FloatTy
impl Unpin for FloatTy
impl UnsafeUnpin for FloatTy
impl UnwindSafe for FloatTy
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