[][src]Struct data_encoding::Wrap

pub struct Wrap {
    pub width: usize,
    pub separator: String,
}

How to wrap the output when encoding

See Specification for more information.

Features

Requires the alloc feature.

Fields

width: usize

Wrapping width

Must be a multiple of:

  • 8 for a bit-width of 1 (binary), 3 (octal), and 5 (base32)
  • 4 for a bit-width of 2 (base4) and 6 (base64)
  • 2 for a bit-width of 4 (hexadecimal)

Wrapping is disabled if null.

separator: String

Wrapping characters

Wrapping is disabled if empty.

Trait Implementations

impl Clone for Wrap[src]

impl Debug for Wrap[src]

Auto Trait Implementations

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> 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.