Struct harfbuzz_sys::hb_feature_t
source · #[repr(C)]pub struct hb_feature_t {
pub tag: hb_tag_t,
pub value: u32,
pub start: c_uint,
pub end: c_uint,
}
Expand description
hb_feature_t: @tag: The #hb_tag_t tag of the feature @value: The value of the feature. 0 disables the feature, non-zero (usually
- enables the feature. For features implemented as lookup type 3 (like ‘salt’) the @value is a one based index into the alternates. @start: the cluster to start applying this feature setting (inclusive). @end: the cluster to end applying this feature setting (exclusive).
The #hb_feature_t is the structure that holds information about requested feature application. The feature will be applied with the given value to all glyphs which are in clusters between @start (inclusive) and @end (exclusive). Setting start to @HB_FEATURE_GLOBAL_START and end to @HB_FEATURE_GLOBAL_END specifies that the feature always applies to the entire buffer.
Fields§
§tag: hb_tag_t
§value: u32
§start: c_uint
§end: c_uint
Trait Implementations§
source§impl Clone for hb_feature_t
impl Clone for hb_feature_t
source§fn clone(&self) -> hb_feature_t
fn clone(&self) -> hb_feature_t
Returns a copy 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 hb_feature_t
impl Debug for hb_feature_t
impl Copy for hb_feature_t
Auto Trait Implementations§
impl Freeze for hb_feature_t
impl RefUnwindSafe for hb_feature_t
impl Send for hb_feature_t
impl Sync for hb_feature_t
impl Unpin for hb_feature_t
impl UnwindSafe for hb_feature_t
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