pub struct Language(/* private fields */);
Expand description
Data type for languages.
Corresponds to a BCP 47 language tag.
Implementations§
Source§impl Language
impl Language
Sourcepub fn as_raw(&self) -> hb_language_t
pub fn as_raw(&self) -> hb_language_t
Exposes the raw inner pointer without transferring the ownership.
Sourcepub unsafe fn from_raw(lang: hb_language_t) -> Self
pub unsafe fn from_raw(lang: hb_language_t) -> Self
Constructs a language from raw sys::hb_language_t
object.
§Safety
The given set
pointer must either be constructed by some Harfbuzz function, or be returned from
Self::as_raw
.
Trait Implementations§
impl Copy for Language
Auto Trait Implementations§
impl Freeze for Language
impl RefUnwindSafe for Language
impl !Send for Language
impl !Sync for Language
impl Unpin for Language
impl UnwindSafe for Language
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