Struct base65536::Config
[−]
[src]
pub struct Config { /* fields omitted */ }
Contains configuration parameters for base65536 encoding/decoding
Methods
impl Config
[src]
fn new() -> Config
Creates a default configuration.
fn ignore_garbage(&mut self, ignore_garbage: bool) -> Config
Ignore non-base65536 code points in text.
Without this set, decode
and friends are very strict,
even failing on line breaks. This is to match behaviour with
the original implementation.
fn wrap(&mut self, wrap: Option<(usize, &'static str)>) -> Config
Wrap output at a column with a custom string. You should generally use "\n", except on Windows, where you might want to use "\r\n".
Unless called with ignore_garbage
set to true
, a decoder will fail
on output created with this enabled. This is to match behaviour with the
original implementation.
Trait Implementations
impl Clone for Config
[src]
fn clone(&self) -> Config
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more