pub struct Converter {
pub encode_to: EncodeTo,
pub case: Case,
pub swap_bytes: bool,
}
Expand description
Fields§
§encode_to: EncodeTo
The text encoding to convert to, if any
case: Case
The case to convert text to, if any
swap_bytes: bool
Whether or not to swap pairs of bytes
Implementations§
Trait Implementations§
Source§impl ConvertSlice<u8> for Converter
impl ConvertSlice<u8> for Converter
Source§fn convert_slice(&self, buf: &mut [u8])
fn convert_slice(&self, buf: &mut [u8])
modify a slice of
T
in-place.Source§fn convert_clone(&self, buf: &[T]) -> Vec<T>
fn convert_clone(&self, buf: &[T]) -> Vec<T>
Source§fn convert_copy(&self, buf: &[T]) -> Vec<T>
fn convert_copy(&self, buf: &[T]) -> Vec<T>
modify a copy of
T
. This is more efficient than
convert_clone
but has tighter
bounds.Auto Trait Implementations§
impl Freeze for Converter
impl RefUnwindSafe for Converter
impl Send for Converter
impl Sync for Converter
impl Unpin for Converter
impl UnwindSafe for Converter
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