pub struct Through<'a> { /* private fields */ }Expand description
Reads refs through written, keeping each node’s answers in kept. A form rewritten
below a ref stands in as a node of its own, numbered from the top of the ids down, kept
only while this reading lasts.
Implementations§
Source§impl<'a> Through<'a>
impl<'a> Through<'a>
pub fn new(written: Written<'a>, kept: &'a Kept) -> Through<'a>
Sourcepub fn stand(&self, body: Body) -> NodeId
pub fn stand(&self, body: Body) -> NodeId
A node of its own standing for body, read through like any other.
Sourcepub fn read<R>(&self, id: NodeId, with: impl FnOnce(&Body) -> R) -> Option<R>
pub fn read<R>(&self, id: NodeId, with: impl FnOnce(&Body) -> R) -> Option<R>
with handed the written form id names, where it names one.
pub fn stands(id: NodeId) -> bool
Trait Implementations§
Source§impl Reads for Through<'_>
impl Reads for Through<'_>
fn lowered( &self, id: NodeId, origin: Origin, var: Var, ) -> Result<SpectralSum, Left>
fn polynomial(&self, id: NodeId, reading: Reading) -> Option<Vec<Coeff>>
fn timeless(&self, id: NodeId) -> bool
fn key_moves(&self, id: NodeId) -> bool
fn mentions_line(&self, id: NodeId) -> bool
fn axis(&self, id: NodeId) -> Option<Axis>
fn line(&self, id: NodeId) -> Option<Line>
fn kink(&self, id: NodeId) -> Option<(Body, Crossing)>
Source§fn replaced(
&self,
id: NodeId,
scope: usize,
kink: &Body,
with: &Body,
) -> Option<NodeId>
fn replaced( &self, id: NodeId, scope: usize, kink: &Body, with: &Body, ) -> Option<NodeId>
A node standing for
id with kink read as with throughout, where it reaches one.Source§fn moved(&self, id: NodeId, at: &Body) -> Option<NodeId>
fn moved(&self, id: NodeId, at: &Body) -> Option<NodeId>
A node standing for
id read at at, the time written through its form.fn stand_for(&self, body: Body) -> Option<NodeId>
fn scope(&self) -> usize
Auto Trait Implementations§
impl<'a> !Freeze for Through<'a>
impl<'a> !RefUnwindSafe for Through<'a>
impl<'a> !Send for Through<'a>
impl<'a> !Sync for Through<'a>
impl<'a> !UnwindSafe for Through<'a>
impl<'a> Unpin for Through<'a>
impl<'a> UnsafeUnpin for Through<'a>
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