Enum base65536::WrapOptions [] [src]

pub enum WrapOptions<'a> {
    NoWrap,
    WrapAt(usize),
    WrapAtWith(usize, &'a str),
}

Line Wrapping Options.

Used with encode and encode_buf. See them for examples.

Unless you want to specify a custom end-of-line string, use an Option::None instead for no wrapping or an usize instead for wrapping at a column boundary, and everything will magically work.

Variants

Don't wrap lines at all

Wrap every so many columns with '\n'. The length must be > 0.

Wrap every so many columns with a specified string. The length must be > 0.

Trait Implementations

impl<'a> Clone for WrapOptions<'a>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'a> Copy for WrapOptions<'a>
[src]

impl<'a> Debug for WrapOptions<'a>
[src]

[src]

Formats the value using the given formatter.

impl<'a> Eq for WrapOptions<'a>
[src]

impl<'a> Hash for WrapOptions<'a>
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl<'a> PartialEq for WrapOptions<'a>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl<'a, T> From<T> for WrapOptions<'a> where
    T: Into<Option<usize>>, 
[src]

[src]

Performs the conversion.