Struct swash::LocalizedString
source · 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
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
)