pub struct OpenTypeFeature {
pub tag: u32,
pub value: u32,
}Expand description
An OpenType feature to enable during shaping.
Fields§
§tag: u32The feature tag (4-byte identifier).
value: u32The feature value (0 = disable, 1 = enable, higher = alternate index).
Implementations§
Trait Implementations§
Source§impl Clone for OpenTypeFeature
impl Clone for OpenTypeFeature
Source§fn clone(&self) -> OpenTypeFeature
fn clone(&self) -> OpenTypeFeature
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for OpenTypeFeature
Source§impl Debug for OpenTypeFeature
impl Debug for OpenTypeFeature
impl Eq for OpenTypeFeature
Source§impl PartialEq for OpenTypeFeature
impl PartialEq for OpenTypeFeature
Source§fn eq(&self, other: &OpenTypeFeature) -> bool
fn eq(&self, other: &OpenTypeFeature) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OpenTypeFeature
Auto Trait Implementations§
impl Freeze for OpenTypeFeature
impl RefUnwindSafe for OpenTypeFeature
impl Send for OpenTypeFeature
impl Sync for OpenTypeFeature
impl Unpin for OpenTypeFeature
impl UnsafeUnpin for OpenTypeFeature
impl UnwindSafe for OpenTypeFeature
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