Enum base65536::WrapOptions [−][src]
Expand description
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
Expand description
Don’t wrap lines at all
WrapAt(usize)
Expand description
Wrap every so many columns with ‘\n’. The length must be > 0.
Expand description
Wrap every so many columns with a specified string. The length must be > 0.
Trait Implementations
impl<'a> Clone for WrapOptions<'a>
[src]
impl<'a> Clone for WrapOptions<'a>
[src]fn clone(&self) -> 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]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl<'a> Debug for WrapOptions<'a>
[src]
impl<'a> Debug for WrapOptions<'a>
[src]impl<'a> Hash for WrapOptions<'a>
[src]
impl<'a> Hash for WrapOptions<'a>
[src]impl<'a> PartialEq<WrapOptions<'a>> for WrapOptions<'a>
[src]
impl<'a> PartialEq<WrapOptions<'a>> for WrapOptions<'a>
[src]fn eq(&self, other: &WrapOptions<'a>) -> bool
[src]
fn eq(&self, other: &WrapOptions<'a>) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &WrapOptions<'a>) -> bool
[src]
fn ne(&self, other: &WrapOptions<'a>) -> bool
[src]This method tests for !=
.
impl<'a> Copy for WrapOptions<'a>
[src]
impl<'a> Eq for WrapOptions<'a>
[src]
impl<'a> StructuralEq for WrapOptions<'a>
[src]
impl<'a> StructuralPartialEq for WrapOptions<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for WrapOptions<'a>
impl<'a> Send for WrapOptions<'a>
impl<'a> Sync for WrapOptions<'a>
impl<'a> Unpin for WrapOptions<'a>
impl<'a> UnwindSafe for WrapOptions<'a>
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more