pub struct LocalizedString<'a> { /* private fields */ }
Expand description
Represents a single localized string in a font.
Localized strings contain an identifier that describes the content of the string (such as family name, copyright notice, sample text, etc), a language that specifies the audience for which the string is intended and some encoded data containing the value of the string. A string with a particular identifier can appear multiple times in a font with various languages and encodings.
Implementations§
Source§impl<'a> LocalizedString<'a>
impl<'a> LocalizedString<'a>
Sourcepub fn is_unicode(&self) -> bool
pub fn is_unicode(&self) -> bool
Returns true if the encoding for the string is unicode.
Sourcepub fn is_decodable(&self) -> bool
pub fn is_decodable(&self) -> bool
Returns true if the string can be decoded.
Trait Implementations§
Source§impl<'a> Clone for LocalizedString<'a>
impl<'a> Clone for LocalizedString<'a>
Source§fn clone(&self) -> LocalizedString<'a>
fn clone(&self) -> LocalizedString<'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> Display for LocalizedString<'a>
impl<'a> Display for LocalizedString<'a>
Source§impl<'a> IntoIterator for LocalizedString<'a>
impl<'a> IntoIterator for LocalizedString<'a>
impl<'a> Copy for LocalizedString<'a>
Auto Trait Implementations§
impl<'a> Freeze for LocalizedString<'a>
impl<'a> RefUnwindSafe for LocalizedString<'a>
impl<'a> Send for LocalizedString<'a>
impl<'a> Sync for LocalizedString<'a>
impl<'a> Unpin for LocalizedString<'a>
impl<'a> UnwindSafe for LocalizedString<'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