pub struct MetaStringEncoder {
pub special_char1: char,
pub special_char2: char,
}Fields§
§special_char1: char§special_char2: charImplementations§
Source§impl MetaStringEncoder
impl MetaStringEncoder
pub const fn new(special_char1: char, special_char2: char) -> Self
pub fn encode(&self, input: &str) -> Result<MetaString, Error>
pub fn encode_with_encodings( &self, input: &str, encodings: &[Encoding], ) -> Result<MetaString, Error>
pub fn encode_with_encoding( &self, input: &str, encoding: Encoding, ) -> Result<MetaString, Error>
pub fn encode_lower_special(&self, input: &str) -> Result<Vec<u8>, Error>
pub fn encode_lower_upper_digit_special( &self, input: &str, ) -> Result<Vec<u8>, Error>
pub fn encode_first_to_lower_special( &self, input: &str, ) -> Result<Vec<u8>, Error>
pub fn encode_all_to_lower_special( &self, input: &str, upper_count: usize, ) -> Result<Vec<u8>, Error>
Trait Implementations§
Source§impl Clone for MetaStringEncoder
impl Clone for MetaStringEncoder
Source§fn clone(&self) -> MetaStringEncoder
fn clone(&self) -> MetaStringEncoder
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 MetaStringEncoder
impl RefUnwindSafe for MetaStringEncoder
impl Send for MetaStringEncoder
impl Sync for MetaStringEncoder
impl Unpin for MetaStringEncoder
impl UnwindSafe for MetaStringEncoder
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