Struct data_encoding::Wrap
source · pub struct Wrap {
pub width: usize,
pub separator: String,
}
Available on crate feature
alloc
only.Expand description
How to wrap the output when encoding
See Specification for more information.
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§
Auto Trait Implementations§
impl Freeze for Wrap
impl RefUnwindSafe for Wrap
impl Send for Wrap
impl Sync for Wrap
impl Unpin for Wrap
impl UnwindSafe for Wrap
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more