pub struct Latin1String {
pub bytes: Vec<u8>,
}
Fields§
§bytes: Vec<u8>
Implementations§
Source§impl Latin1String
impl Latin1String
pub fn empty() -> Latin1String
pub fn new(bytes: &[u8]) -> Latin1String
pub fn from_vec(bytes: Vec<u8>) -> Latin1String
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn lowercase(chr: u8) -> u8
pub fn make_lowercase(&mut self)
pub fn to_lowercase(&self) -> Latin1String
pub fn from_utf8(string: &str) -> Result<Latin1String, Utf8ToLatin1Error>
Trait Implementations§
Source§impl Clone for Latin1String
impl Clone for Latin1String
Source§fn clone(&self) -> Latin1String
fn clone(&self) -> Latin1String
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 moreSource§impl Debug for Latin1String
impl Debug for Latin1String
Source§impl Display for Latin1String
impl Display for Latin1String
Source§impl Hash for Latin1String
impl Hash for Latin1String
Source§impl PartialEq for Latin1String
impl PartialEq for Latin1String
impl Eq for Latin1String
impl StructuralPartialEq for Latin1String
Auto Trait Implementations§
impl Freeze for Latin1String
impl RefUnwindSafe for Latin1String
impl Send for Latin1String
impl Sync for Latin1String
impl Unpin for Latin1String
impl UnwindSafe for Latin1String
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