Enum BsInt

Source
pub enum BsInt {
    I8(i8),
    I16(i16),
    I32(i32),
    I64(i64),
    U8(u8),
    U16(u16),
    U32(u32),
    U64(u64),
}

Variants§

§

I8(i8)

§

I16(i16)

§

I32(i32)

§

I64(i64)

§

U8(u8)

§

U16(u16)

§

U32(u32)

§

U64(u64)

Trait Implementations§

Source§

impl Clone for BsInt

Source§

fn clone(&self) -> BsInt

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl DataType for BsInt

Source§

const DATATYPE_MSGPCK: u8 = 2u8

Source§

const ARRAYDATATYPE_MSGPCK: u8 = 18u8

Source§

const DATATYPE_STRING: &'static str = "int"

Source§

const ARRAYDATATYPE_STRING: &'static str = "int[]"

Source§

fn decode<R: RmpRead>(rd: &mut R) -> Result<Self, ()>

Source§

fn encode<W: RmpWrite>(wr: &mut W, val: Self) -> Result<(), ()>

Source§

fn decode_array<R: RmpRead>(rd: &mut R) -> Result<Vec<Self>, ()>

Source§

fn encode_array<W: RmpWrite>(wr: &mut W, vals: Vec<Self>) -> Result<(), ()>

Source§

impl Debug for BsInt

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<i16> for BsInt

Source§

fn from(val: i16) -> Self

Converts to this type from the input type.
Source§

impl From<i32> for BsInt

Source§

fn from(val: i32) -> Self

Converts to this type from the input type.
Source§

impl From<i64> for BsInt

Source§

fn from(val: i64) -> Self

Converts to this type from the input type.
Source§

impl From<i8> for BsInt

Source§

fn from(val: i8) -> Self

Converts to this type from the input type.
Source§

impl From<u16> for BsInt

Source§

fn from(val: u16) -> Self

Converts to this type from the input type.
Source§

impl From<u32> for BsInt

Source§

fn from(val: u32) -> Self

Converts to this type from the input type.
Source§

impl From<u64> for BsInt

Source§

fn from(val: u64) -> Self

Converts to this type from the input type.
Source§

impl From<u8> for BsInt

Source§

fn from(val: u8) -> Self

Converts to this type from the input type.

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DataWrap for T
where T: DataType + Debug,

Source§

const MSGPCK: u8 = const MSGPCK: u8 = Self::DATATYPE_MSGPCK;

Source§

const STRING: &'static str = const STRING: &'static str = Self::DATATYPE_STRING;

Source§

fn decode<R>(rd: &mut R) -> Result<T, ()>
where R: RmpRead,

Source§

fn encode<W>(wr: &mut W, val: T) -> Result<(), ()>
where W: RmpWrite,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more