pub struct CharEncoder {
pub encoding: CharEncoding,
}Expand description
Encodes and decodes characters to/from various byte representations.
Fields§
§encoding: CharEncodingThe active encoding.
Implementations§
Source§impl CharEncoder
impl CharEncoder
Sourcepub fn new(encoding: CharEncoding) -> Self
pub fn new(encoding: CharEncoding) -> Self
Create a new encoder.
Trait Implementations§
Source§impl Clone for CharEncoder
impl Clone for CharEncoder
Source§fn clone(&self) -> CharEncoder
fn clone(&self) -> CharEncoder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CharEncoder
impl RefUnwindSafe for CharEncoder
impl Send for CharEncoder
impl Sync for CharEncoder
impl Unpin for CharEncoder
impl UnsafeUnpin for CharEncoder
impl UnwindSafe for CharEncoder
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