[][src]Struct rosy::num::pack::Options

pub struct Options { /* fields omitted */ }

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]

Sets 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]

Sets 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 Copy for Options[src]

impl Clone for Options[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Default for Options[src]

impl Debug for Options[src]

Auto Trait Implementations

impl Send for Options

impl Sync for Options

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]