pub enum Number {
Byte(i8),
Short(i16),
Int(i32),
Long(i64),
Float(f32),
Double(f64),
}Variants§
Implementations§
Trait Implementations§
Source§impl<O: Ops> Codec<O> for Number
impl<O: Ops> Codec<O> for Number
Source§fn codec_read(ops: &O) -> ReadResult<Self>
fn codec_read(ops: &O) -> ReadResult<Self>
Convert from a data format to a data structure.
Source§fn codec_write(&self) -> WriteResult<O>
fn codec_write(&self) -> WriteResult<O>
Convert from a data structure to a data format.
type Incomplete = Result<Self, ReadError>
impl Copy for Number
Source§impl<O: Ops> Defaultable<O> for Number
impl<O: Ops> Defaultable<O> for Number
fn is_default(&self) -> bool
Auto Trait Implementations§
impl Forget for Number
impl Freeze for Number
impl Move for Number
impl RefUnwindSafe for Number
impl Send for Number
impl Sync for Number
impl Unpin for Number
impl UnsafeUnpin for Number
impl UnwindSafe for Number
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