#[repr(C)]pub struct Feature {
pub tag: Tag,
pub value: u32,
pub start: u32,
pub end: u32,
}
Expand description
A feature tag with an accompanying range specifying on which subslice of
shape
s input it should be applied.
Fields§
§tag: Tag
§value: u32
§start: u32
§end: u32
Implementations§
Trait Implementations§
source§impl FromStr for Feature
impl FromStr for Feature
source§fn from_str(s: &str) -> Result<Self, Self::Err>
fn from_str(s: &str) -> Result<Self, Self::Err>
Parses a Feature
form a string.
Possible values:
kern
-> kern .. 1+kern
-> kern .. 1-kern
-> kern .. 0kern=0
-> kern .. 0kern=1
-> kern .. 1aalt=2
-> altr .. 2kern[]
-> kern .. 1kern[:]
-> kern .. 1kern[5:]
-> kern 5.. 1kern[:5]
-> kern ..=5 1kern[3:5]
-> kern 3..=5 1kern[3]
-> kern 3..=4 1aalt[3:5]=2
-> kern 3..=5 1
impl Copy for Feature
impl StructuralPartialEq for Feature
Auto Trait Implementations§
impl Freeze for Feature
impl RefUnwindSafe for Feature
impl Send for Feature
impl Sync for Feature
impl Unpin for Feature
impl UnwindSafe for Feature
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)