[][src]Struct rustybuzz::Feature

#[repr(C)]pub struct Feature {
    pub tag: Tag,
    pub value: u32,
    pub start: u32,
    pub end: u32,
}

A feature tag with an accompanying range specifying on which subslice of shapes input it should be applied.

Fields

tag: Tagvalue: u32start: u32end: u32

Implementations

impl Feature[src]

pub fn new(tag: Tag, value: u32, range: impl RangeBounds<usize>) -> Feature[src]

Create a new Feature struct.

Trait Implementations

impl Clone for Feature[src]

impl Copy for Feature[src]

impl Debug for Feature[src]

impl FromStr for Feature[src]

type Err = &'static str

The associated error which can be returned from parsing.

pub fn from_str(s: &str) -> Result<Self, Self::Err>[src]

Parses a Feature form a string.

Possible values:

  • kern -> kern .. 1
  • +kern -> kern .. 1
  • -kern -> kern .. 0
  • kern=0 -> kern .. 0
  • kern=1 -> kern .. 1
  • aalt=2 -> altr .. 2
  • kern[] -> kern .. 1
  • kern[:] -> kern .. 1
  • kern[5:] -> kern 5.. 1
  • kern[:5] -> kern ..=5 1
  • kern[3:5] -> kern 3..=5 1
  • kern[3] -> kern 3..=4 1
  • aalt[3:5]=2 -> kern 3..=5 1

impl PartialEq<Feature> for Feature[src]

impl StructuralPartialEq for Feature[src]

Auto Trait Implementations

impl RefUnwindSafe for Feature

impl Send for Feature

impl Sync for Feature

impl Unpin for Feature

impl UnwindSafe for Feature

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.