Struct binary_data_schema::Integer [−][src]
Implementations
impl Integer[src]
pub fn new(byteorder: ByteOrder, length: usize, signed: bool) -> Result<Self>[src]
pub fn default_long() -> Self[src]
Default schema with a length of 8 bytes.
pub fn default_short() -> Self[src]
Default schema with a length of 1 byte.
pub fn unsigned_byte() -> Self[src]
Trait Implementations
impl Clone for Integer[src]
impl Copy for Integer[src]
impl Debug for Integer[src]
impl Decoder for Integer[src]
impl Default for Integer[src]
impl Encoder for Integer[src]
fn encode<W>(&self, target: &mut W, value: &Value) -> Result<usize> where
W: Write + WriteBytesExt, [src]
W: Write + WriteBytesExt,
impl From<Integer> for IntegerSchema[src]
Auto Trait Implementations
impl RefUnwindSafe for Integer[src]
impl Send for Integer[src]
impl Sync for Integer[src]
impl Unpin for Integer[src]
impl UnwindSafe for Integer[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,