pub struct ShapeFeature {
pub tag: [u8; 4],
pub value: u32,
}Expand description
An OpenType feature tag-value pair.
The tag is a 4-byte ASCII identifier (e.g. b"liga", b"kern",
b"smcp"). A value of 0 disables the feature, 1 enables it, and
values >1 select an alternate index for features such as salt.
Fields§
§tag: [u8; 4]4-byte ASCII OpenType feature tag.
value: u32Feature value: 0 = disable, 1 = enable, >1 = alternate index.
Implementations§
Trait Implementations§
Source§impl Clone for ShapeFeature
impl Clone for ShapeFeature
Source§fn clone(&self) -> ShapeFeature
fn clone(&self) -> ShapeFeature
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 ShapeFeature
Source§impl Debug for ShapeFeature
impl Debug for ShapeFeature
impl Eq for ShapeFeature
Source§impl Hash for ShapeFeature
impl Hash for ShapeFeature
Source§impl PartialEq for ShapeFeature
impl PartialEq for ShapeFeature
Source§fn eq(&self, other: &ShapeFeature) -> bool
fn eq(&self, other: &ShapeFeature) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ShapeFeature
Auto Trait Implementations§
impl Freeze for ShapeFeature
impl RefUnwindSafe for ShapeFeature
impl Send for ShapeFeature
impl Sync for ShapeFeature
impl Unpin for ShapeFeature
impl UnsafeUnpin for ShapeFeature
impl UnwindSafe for ShapeFeature
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> 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.