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
NoWrap
Don't wrap lines at all
WrapAt(usize)
Wrap every so many columns with '\n'. The length must be > 0.
WrapAtWith(usize, &'a str)
Wrap every so many columns with a specified string. The length must be > 0.
Trait Implementations
impl<'a> Clone for WrapOptions<'a>
[src]
fn clone(&self) -> WrapOptions<'a>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
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]
impl<'a> Eq for WrapOptions<'a>
[src]
impl<'a> Hash for WrapOptions<'a>
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<'a> PartialEq for WrapOptions<'a>
[src]
fn eq(&self, __arg_0: &WrapOptions<'a>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &WrapOptions<'a>) -> bool
[src]
This method tests for !=
.
impl<'a, T> From<T> for WrapOptions<'a> where
T: Into<Option<usize>>,
[src]
T: Into<Option<usize>>,