pub struct PlainInteger { /* private fields */ }
Expand description
A simple integer schema.
Implementations§
Source§impl PlainInteger
impl PlainInteger
pub fn new( byteorder: ByteOrder, length: usize, signed: bool, ) -> Result<Self, ValidationError>
Sourcepub fn default_long() -> Self
pub fn default_long() -> Self
Default schema with a length of 8 bytes.
Sourcepub fn signed_byte() -> Self
pub fn signed_byte() -> Self
Default schema with a length of 1 byte.
pub fn unsigned_byte() -> Self
Trait Implementations§
Source§impl Clone for PlainInteger
impl Clone for PlainInteger
Source§fn clone(&self) -> PlainInteger
fn clone(&self) -> PlainInteger
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PlainInteger
impl Debug for PlainInteger
Source§impl Decoder for PlainInteger
impl Decoder for PlainInteger
Source§impl Default for PlainInteger
impl Default for PlainInteger
Source§impl Encoder for PlainInteger
impl Encoder for PlainInteger
Source§impl From<PlainInteger> for IntegerSchema
impl From<PlainInteger> for IntegerSchema
Source§fn from(integer: PlainInteger) -> Self
fn from(integer: PlainInteger) -> Self
Converts to this type from the input type.
impl Copy for PlainInteger
Auto Trait Implementations§
impl Freeze for PlainInteger
impl RefUnwindSafe for PlainInteger
impl Send for PlainInteger
impl Sync for PlainInteger
impl Unpin for PlainInteger
impl UnwindSafe for PlainInteger
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