[−][src]Struct rosy::num::pack::Options
Options to use when (un)packing.
Methods
impl Options
[src]
pub fn big_endian() -> Self
[src]
Returns a new instance for big-endian byte order.
pub fn little_endian() -> Self
[src]
Returns a new instance for little-endian byte order.
#[must_use]
pub fn byte_order(self, order: Order) -> Self
[src]
#[must_use]
pub fn byte_order(self, order: Order) -> SelfSets the endianness for each word.
The default is the platform's native byte order: little-endian.
#[must_use]
pub fn word_order(self, order: Order) -> Self
[src]
#[must_use]
pub fn word_order(self, order: Order) -> SelfSets the order in which words should be packed.
The default is least-significant first.
pub fn is_negative(self) -> Self
[src]
Makes the Integer
instance negative. This is only used when unpacking.
Trait Implementations
impl Default for Options
[src]
impl Clone for Options
[src]
fn clone(&self) -> Options
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for Options
[src]
impl Debug for Options
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,