pub enum BsInt {
I8(i8),
I16(i16),
I32(i32),
I64(i64),
U8(u8),
U16(u16),
U32(u32),
U64(u64),
}
Variants§
Trait Implementations§
Source§impl DataType for BsInt
impl DataType for BsInt
const DATATYPE_MSGPCK: u8 = 2u8
const ARRAYDATATYPE_MSGPCK: u8 = 18u8
const DATATYPE_STRING: &'static str = "int"
const ARRAYDATATYPE_STRING: &'static str = "int[]"
fn decode<R: RmpRead>(rd: &mut R) -> Result<Self, ()>
fn encode<W: RmpWrite>(wr: &mut W, val: Self) -> Result<(), ()>
fn decode_array<R: RmpRead>(rd: &mut R) -> Result<Vec<Self>, ()>
fn encode_array<W: RmpWrite>(wr: &mut W, vals: Vec<Self>) -> Result<(), ()>
Auto Trait Implementations§
impl Freeze for BsInt
impl RefUnwindSafe for BsInt
impl Send for BsInt
impl Sync for BsInt
impl Unpin for BsInt
impl UnwindSafe for BsInt
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