pub struct ContextField {
pub at_token: Vec<WindowProfile>,
pub of_unit: Vec<WindowProfile>,
pub at_unit: Vec<WindowProfile>,
pub agreement: Vec<Agreement>,
}Expand description
The rolling context of a stream.
Fields§
§at_token: Vec<WindowProfile>The token-rung window’s fold at each token index. A whitespace token carries the reading of the significant token before it.
of_unit: Vec<WindowProfile>Each unit’s own reading: the fold of its tokens.
at_unit: Vec<WindowProfile>The unit-rung window’s fold at each unit index.
agreement: Vec<Agreement>Per unit, which lower grains place a boundary at its start.
Implementations§
Source§impl ContextField
impl ContextField
Sourcepub fn alignment(&self) -> (f32, f32, f32)
pub fn alignment(&self) -> (f32, f32, f32)
How consistently each lower grain’s boundaries sit at one offset from
the starts of units of one role: the share of units whose nearest
boundary of that grain lies at the modal offset for their role, as
(regime, shape, seam), each in [0, 1]. A grain that reads the
same construct the unit rung reads lands at one place per role; on a
stream with no construct to read its offsets spread. Zeros for no
units.
Trait Implementations§
Source§impl Clone for ContextField
impl Clone for ContextField
Source§impl Debug for ContextField
impl Debug for ContextField
Auto Trait Implementations§
impl Freeze for ContextField
impl RefUnwindSafe for ContextField
impl Send for ContextField
impl Sync for ContextField
impl Unpin for ContextField
impl UnsafeUnpin for ContextField
impl UnwindSafe for ContextField
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