Struct swash::text::Language [−][src]
pub struct Language { /* fields omitted */ }Representation of a language and its associated script and region.
Implementations
impl Language[src]
impl Language[src]pub fn parse(tag: &str) -> Option<Self>[src]
Parses a language tag.
pub fn from_opentype(tag: Tag) -> Option<Self>[src]
Returns the language associated with the specified OpenType language tag.
pub fn language(&self) -> &str[src]
Returns the language component.
pub fn script(&self) -> Option<&str>[src]
Returns the script component.
pub fn region(&self) -> Option<&str>[src]
Returns the region component.
pub fn cjk(&self) -> Cjk[src]
Returns the CJK language.
pub fn name(&self) -> Option<&'static str>[src]
Returns the name of the language.
pub fn to_opentype(&self) -> Option<Tag>[src]
Returns the associated OpenType language tag.
Trait Implementations
impl StructuralEq for Language[src]
impl StructuralEq for Language[src]impl StructuralPartialEq for Language[src]
impl StructuralPartialEq for Language[src]Auto Trait Implementations
impl RefUnwindSafe for Language
impl RefUnwindSafe for Languageimpl UnwindSafe for Language
impl UnwindSafe for Language