pub struct FeatureKey { /* private fields */ }
Expand description
A feature associated with a particular script and language.
Implementations§
Source§impl FeatureKey
impl FeatureKey
Sourcepub const fn new(feature: Tag, language: Tag, script: Tag) -> Self
pub const fn new(feature: Tag, language: Tag, script: Tag) -> Self
Create a new feature key for the provided feature, language, and script.
If you already have a super::LanguageSystem
, you can create a FeatureKey
with the super::LanguageSystem::to_feature_key
method.
Trait Implementations§
Source§impl Clone for FeatureKey
impl Clone for FeatureKey
Source§fn clone(&self) -> FeatureKey
fn clone(&self) -> FeatureKey
Returns a duplicate 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 Debug for FeatureKey
impl Debug for FeatureKey
Source§impl Hash for FeatureKey
impl Hash for FeatureKey
Source§impl Ord for FeatureKey
impl Ord for FeatureKey
Source§fn cmp(&self, other: &FeatureKey) -> Ordering
fn cmp(&self, other: &FeatureKey) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for FeatureKey
impl PartialEq for FeatureKey
Source§impl PartialOrd for FeatureKey
impl PartialOrd for FeatureKey
impl Copy for FeatureKey
impl Eq for FeatureKey
impl StructuralPartialEq for FeatureKey
Auto Trait Implementations§
impl Freeze for FeatureKey
impl RefUnwindSafe for FeatureKey
impl Send for FeatureKey
impl Sync for FeatureKey
impl Unpin for FeatureKey
impl UnwindSafe for FeatureKey
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§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T
, using the provided data to resolve any offsets.