#[non_exhaustive]pub struct TokenDetail {
pub cp: char,
pub alias: Option<Alias>,
pub position: Position,
pub fvs: Option<Fvs>,
pub condition: Option<Condition>,
pub written: Vec<WrittenUnit>,
}Expand description
Per-token breakdown returned by Shaper::shape_detailed.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.cp: charThe token’s code point (MVS for NNBSP input).
alias: Option<Alias>The letter’s alias in this locale, if any (None for structural tokens).
position: PositionStructural position (Isol for structural tokens).
fvs: Option<Fvs>The first FVS attached to the letter (Python reports only the first one).
condition: Option<Condition>The condition assigned by the rule pipeline.
written: Vec<WrittenUnit>The resolved written units (empty for structural tokens).
Trait Implementations§
Source§impl Clone for TokenDetail
impl Clone for TokenDetail
Source§fn clone(&self) -> TokenDetail
fn clone(&self) -> TokenDetail
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 moreSource§impl Debug for TokenDetail
impl Debug for TokenDetail
impl Eq for TokenDetail
Source§impl PartialEq for TokenDetail
impl PartialEq for TokenDetail
impl StructuralPartialEq for TokenDetail
Auto Trait Implementations§
impl Freeze for TokenDetail
impl RefUnwindSafe for TokenDetail
impl Send for TokenDetail
impl Sync for TokenDetail
impl Unpin for TokenDetail
impl UnsafeUnpin for TokenDetail
impl UnwindSafe for TokenDetail
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