Skip to main content

Through

Struct Through 

Source
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>

Source

pub fn new(written: Written<'a>, kept: &'a Kept) -> Through<'a>

Source

pub fn stand(&self, body: Body) -> NodeId

A node of its own standing for body, read through like any other.

Source

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.

Source

pub fn stands(id: NodeId) -> bool

Trait Implementations§

Source§

impl Reads for Through<'_>

Source§

fn lowered( &self, id: NodeId, origin: Origin, var: Var, ) -> Result<SpectralSum, Left>

Source§

fn polynomial(&self, id: NodeId, reading: Reading) -> Option<Vec<Coeff>>

Source§

fn timeless(&self, id: NodeId) -> bool

Source§

fn key_moves(&self, id: NodeId) -> bool

Source§

fn mentions_line(&self, id: NodeId) -> bool

Source§

fn axis(&self, id: NodeId) -> Option<Axis>

Source§

fn line(&self, id: NodeId) -> Option<Line>

Source§

fn kink(&self, id: NodeId) -> Option<(Body, Crossing)>

Source§

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>

A node standing for id read at at, the time written through its form.
Source§

fn stand_for(&self, body: Body) -> Option<NodeId>

Source§

fn scope(&self) -> usize

Source§

fn view(&self, id: NodeId, read: &Read<'_>) -> Option<Form<'_>>

The form id names as read reads it, one level down: its own refs still refs.
Source§

fn growth(&self, id: NodeId, at: &Body, k: IndexId) -> Option<IndexGrowth>

How the form id names grows in k, read at a time k moves.

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.