pub struct Latin1String<'a> { /* private fields */ }
Expand description
Reference to a Latin-1 encoded string.
Strings stored in all PostScript defined fonts are usually ASCII but are technically encoded in Latin-1. This type wraps the raw string data to prevent attempts to decode as UTF-8.
This implements PartialEq<&str>
to support easy comparison with UTF-8
strings.
Implementations§
Trait Implementations§
Source§impl<'a> Clone for Latin1String<'a>
impl<'a> Clone for Latin1String<'a>
Source§fn clone(&self) -> Latin1String<'a>
fn clone(&self) -> Latin1String<'a>
Returns a copy 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<'a> Debug for Latin1String<'a>
impl<'a> Debug for Latin1String<'a>
Source§impl Display for Latin1String<'_>
impl Display for Latin1String<'_>
Source§impl PartialEq<&str> for Latin1String<'_>
impl PartialEq<&str> for Latin1String<'_>
Source§impl<'a> PartialEq for Latin1String<'a>
impl<'a> PartialEq for Latin1String<'a>
impl<'a> Copy for Latin1String<'a>
impl<'a> Eq for Latin1String<'a>
impl<'a> StructuralPartialEq for Latin1String<'a>
Auto Trait Implementations§
impl<'a> Freeze for Latin1String<'a>
impl<'a> RefUnwindSafe for Latin1String<'a>
impl<'a> Send for Latin1String<'a>
impl<'a> Sync for Latin1String<'a>
impl<'a> Unpin for Latin1String<'a>
impl<'a> UnwindSafe for Latin1String<'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