Skip to main content

Render

Struct Render 

Source
pub struct Render {
Show 13 fields pub root: NodeId, pub tys: Typing, pub buffers: BTreeMap<NodeId, Buffer>, pub frames: BTreeMap<NodeId, Frames>, pub symbolic: BTreeMap<NodeId, SpectralSum>, pub labels: BTreeMap<NodeId, Label>, pub traces: Vec<FilterTrace>, pub config: RenderConfig, pub schedule: Schedule, pub bindings: BTreeMap<NodeId, Vec<Binding>>, pub cache_stats: Option<CacheStats>, pub held_bytes: usize, pub range: Option<Extent>, /* private fields */
}

Fields§

§root: NodeId§tys: Typing§buffers: BTreeMap<NodeId, Buffer>§frames: BTreeMap<NodeId, Frames>§symbolic: BTreeMap<NodeId, SpectralSum>§labels: BTreeMap<NodeId, Label>§traces: Vec<FilterTrace>§config: RenderConfig§schedule: Schedule§bindings: BTreeMap<NodeId, Vec<Binding>>§cache_stats: Option<CacheStats>§held_bytes: usize

The most bytes the table held at once, samples and state.

§range: Option<Extent>

The samples the root was read over; None where no reading needed any.

Implementations§

Source§

impl Render

Source

pub fn work(&self) -> Work

What its schedule prices: every value once over the range, whatever the store answered.

Source

pub fn output(&self, node: NodeId) -> Result<Buffer, EngineError>

A node’s samples over the range, zero where it holds none.

Source

pub fn buffer(&self, node: NodeId) -> Option<&Buffer>

Source

pub fn id(&self, path: &str) -> Option<NodeId>

Source

pub fn node(&self, path: &str) -> Result<NodeId, EngineError>

The node a reading names, refusing by name where a file expanded into several.

Source

pub fn evaluated(&self, node: NodeId) -> Vec<Extent>

Each segment the render computed of node’s value, in order: a sample in two was computed twice.

Source

pub fn alias_oversample(&self, node: NodeId) -> Option<u32>

The multiple a reading asks this node’s score against, where one asks for a score at all.

Source

pub fn alias_score(&self, node: NodeId) -> AliasScore

Auto Trait Implementations§

§

impl !Freeze for Render

§

impl !RefUnwindSafe for Render

§

impl !Sync for Render

§

impl !UnwindSafe for Render

§

impl Send for Render

§

impl Unpin for Render

§

impl UnsafeUnpin for Render

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.