pub struct RelationContext {
pub at_token: Vec<RelationReading>,
pub phase_of: Vec<u16>,
pub value_history: Vec<WindowProfile>,
pub period: Option<u16>,
}Expand description
The related context at every token.
Fields§
§at_token: Vec<RelationReading>One reading per token index. A whitespace token carries the reading of the significant token before it.
phase_of: Vec<u16>Per token index, the token’s phase of the dominant period - its index
among the significant tokens modulo the period - or u16::MAX for an
insignificant token or a stream with no period.
value_history: Vec<WindowProfile>Per token index, the fold over the values bound to earlier occurrences
of the token’s key: for each earlier occurrence that is the left
operand of a binding punctuation (=, :), the reading of the right
operand. Identity for an unkeyed token, a first occurrence, or a key
never bound before.
period: Option<u16>The dominant token-kind period the phase fold is keyed on, when the stream has one.
Trait Implementations§
Source§impl Clone for RelationContext
impl Clone for RelationContext
Source§impl Debug for RelationContext
impl Debug for RelationContext
Auto Trait Implementations§
impl Freeze for RelationContext
impl RefUnwindSafe for RelationContext
impl Send for RelationContext
impl Sync for RelationContext
impl Unpin for RelationContext
impl UnsafeUnpin for RelationContext
impl UnwindSafe for RelationContext
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