Struct read_fonts::tables::postscript::Latin1String
source · 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)