[][src]Struct binjs_io::entropy::Options

pub struct Options { /* fields omitted */ }

Methods

impl Options[src]

pub fn new(spec: &Spec, dictionaries: DictionaryFamily<Instances>) -> Self[src]

Create a fresh Options to encode/decode in a given grammar spec with a family of dictionaries.

If dictionaries is empty, a default dictionary is insertred.

pub fn statistics_for_write(&self) -> impl Display[src]

Return the statistics as (number of instances, number of bytes).

pub fn with_split_streams(&mut self, value: bool) -> &mut Self[src]

Configure the split-streams option.

If value == true, dump the individual streams for forensics purposes, otherwise don't.

Trait Implementations

impl Clone for Options[src]

Auto Trait Implementations

impl !RefUnwindSafe for Options

impl !Send for Options

impl !Sync for Options

impl Unpin for Options

impl !UnwindSafe for Options

Blanket Implementations

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

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

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

impl<T> Downcast for T where
    T: Any
[src]

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]