pub trait Stream {
    fn spawn_layer(&self) -> Layer;
    fn eval_layer(&self) -> Layer;
    fn name(&self) -> &str;
    fn ty(&self) -> &Type;
    fn is_input(&self) -> bool;
    fn is_parameterized(&self) -> bool;
    fn is_spawned(&self) -> bool;
    fn is_closed(&self) -> bool;
    fn values_to_memorize(&self) -> MemorizationBound;
    fn as_stream_ref(&self) -> StreamReference;
}
Expand description

A trait for any kind of stream.

Required Methods§

source

fn spawn_layer(&self) -> Layer

Reports the evaluation layer of the spawn condition of the stream.

source

fn eval_layer(&self) -> Layer

Reports the evaluation layer of the stream.

source

fn name(&self) -> &str

Reports the name of the stream.

source

fn ty(&self) -> &Type

Returns the type of the stream.

source

fn is_input(&self) -> bool

Indicates whether or not the stream is an input stream.

source

fn is_parameterized(&self) -> bool

Indicates whether or not the stream has parameters.

source

fn is_spawned(&self) -> bool

Indicates whether or not the stream spawned / dynamically created.

source

fn is_closed(&self) -> bool

Indicates whether or not the stream is closed.

source

fn values_to_memorize(&self) -> MemorizationBound

Indicates how many values of the stream’s Type need to be memorized.

source

fn as_stream_ref(&self) -> StreamReference

Produces a stream references referring to the stream.

Implementors§