pub struct Charset<'a>(pub &'a str);
Expand description
Handles string encoding and decoding operations.
Uses a custom character set for the encoding/decoding process.
The character set should contain unique characters and ideally have 64 characters for base64-like encoding.
Tuple Fields§
§0: &'a str
Reference to the character set used for encoding/decoding.
Implementations§
Source§impl<'a> Charset<'a>
impl<'a> Charset<'a>
Sourcepub fn new() -> Charset<'a>
pub fn new() -> Charset<'a>
Creates a new Charset instance with default charset.
§Returns
Charset<'a>
- New instance with empty charset.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Charset<'a>
impl<'a> RefUnwindSafe for Charset<'a>
impl<'a> Send for Charset<'a>
impl<'a> Sync for Charset<'a>
impl<'a> Unpin for Charset<'a>
impl<'a> UnwindSafe for Charset<'a>
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