Skip to main content

Rows

Struct Rows 

Source
pub struct Rows { /* private fields */ }
Expand description

Rows chosen from the form, the rate and the profile alone: each sample is its own instant’s value, so any span reads what one whole span reads there.

Implementations§

Source§

impl Rows

Source

pub fn of( form: &ClosedForm, rate: u32, profile: &Profile, ) -> Result<Rows, CollapseError>

collapse::render’s dispatch.

Source

pub fn of_spectral_sum_or_point( sum: &SpectralSum, written: Option<&ClosedForm>, rate: u32, profile: &Profile, ) -> Result<Rows, CollapseError>

Source

pub fn width(&self) -> usize

Source

pub fn label(&self, profile: &Profile) -> Label

How exact these rows are, stated once for every sample they write.

Source

pub fn lines(&self) -> Option<Vec<f64>>

The lines a row of lines sums, each lane’s, as hertz; None for any other row.

Source

pub fn planes(&self, from: i64, to: i64) -> Result<Vec<Vec<f64>>, CollapseError>

[from, to) of every component, on the grid’s own index.

Source

pub fn work(&self, from: i64, to: i64) -> (u128, u128)

What writing [from, to) of every component takes, as (priced flops, waves).

Source

pub fn extend(&self, to: i64, tape: &mut Tape) -> Result<(), CollapseError>

Appends [tape.end(), to) of every component, on the grid’s own index.

Auto Trait Implementations§

§

impl Freeze for Rows

§

impl RefUnwindSafe for Rows

§

impl Send for Rows

§

impl Sync for Rows

§

impl Unpin for Rows

§

impl UnsafeUnpin for Rows

§

impl UnwindSafe for Rows

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.