[][src]Struct tydi::logical::Stream

pub struct Stream { /* fields omitted */ }

The stream-manipulating logical stream type.

Defines a new physical stream.

Reference

Methods

impl Stream[src]

pub fn new(
    data: LogicalStreamType,
    throughput: PositiveReal,
    dimensionality: NonNegative,
    synchronicity: Synchronicity,
    complexity: impl Into<Complexity>,
    direction: Direction,
    user: Option<LogicalStreamType>,
    keep: bool
) -> Self
[src]

pub fn new_basic(data: LogicalStreamType) -> Self[src]

pub fn data(&self) -> &LogicalStreamType[src]

pub fn direction(&self) -> Direction[src]

Returns the direction of this stream.

pub fn synchronicity(&self) -> Synchronicity[src]

Returns the synchronicity of this stream.

pub fn dimensionality(&self) -> NonNegative[src]

Returns the dimensionality of this stream.

pub fn throughput(&self) -> PositiveReal[src]

Returns the throughput ratio of this stream.

pub fn is_null(&self) -> bool[src]

Returns true if this stream is null i.e. it results in no signals.

Reference

Trait Implementations

impl Clone for Stream[src]

impl Debug for Stream[src]

impl From<Stream> for LogicalStreamType[src]

fn from(stream: Stream) -> Self[src]

Wraps this stream in a LogicalStreamType.

impl PartialEq<Stream> for Stream[src]

impl Reverse for Stream[src]

fn reverse(&mut self)[src]

Reverse the direction of this stream.

This flips the Direction of the stream.

impl StructuralPartialEq for Stream[src]

impl Typify for Stream[src]

fn user(&self, prefix: impl Into<String>) -> Option<Type>[src]

This implementation for Stream assumes the parent LogicalStreamType has already been flattened through synthesize.

fn canonical(&self, prefix: impl Into<String>) -> Vec<Signal>[src]

This implementation for Stream assumes the parent LogicalStreamType has already been flattened through synthesize.

Auto Trait Implementations

impl RefUnwindSafe for Stream

impl Send for Stream

impl Sync for Stream

impl Unpin for Stream

impl UnwindSafe for Stream

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.