#[non_exhaustive]pub struct ShapeTrace {
pub positions: Vec<Position>,
pub transitions: Vec<RuleTransition>,
pub final_conditions: Vec<Option<Condition>>,
pub written_by_token: Vec<Vec<WrittenUnit>>,
pub shape: Vec<WrittenUnit>,
}Expand description
A per-rule trace of the shaping pipeline — the verifier for
tests/golden/mng-phase-trace-v1.json. Every vector covers all tokens, structural ones
included (position Isol, condition None, no written units).
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.positions: Vec<Position>Position of every token.
transitions: Vec<RuleTransition>Rules that changed at least one condition, in rule order.
final_conditions: Vec<Option<Condition>>Condition of every token after all rules ran.
written_by_token: Vec<Vec<WrittenUnit>>Resolved written units of every token.
shape: Vec<WrittenUnit>The flattened shape (what Shaper::shape returns).
Trait Implementations§
Source§impl Clone for ShapeTrace
impl Clone for ShapeTrace
Source§fn clone(&self) -> ShapeTrace
fn clone(&self) -> ShapeTrace
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 ShapeTrace
impl Debug for ShapeTrace
impl Eq for ShapeTrace
Source§impl PartialEq for ShapeTrace
impl PartialEq for ShapeTrace
impl StructuralPartialEq for ShapeTrace
Auto Trait Implementations§
impl Freeze for ShapeTrace
impl RefUnwindSafe for ShapeTrace
impl Send for ShapeTrace
impl Sync for ShapeTrace
impl Unpin for ShapeTrace
impl UnsafeUnpin for ShapeTrace
impl UnwindSafe for ShapeTrace
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