[][src]Struct tydi::generator::common::Record

pub struct Record { /* fields omitted */ }

Inner struct for Type::Record

Methods

impl Record[src]

pub fn new(name: impl Into<String>, fields: Vec<Field>) -> Record[src]

Construct a new record.

pub fn new_empty(name: impl Into<String>) -> Record[src]

Construct a new record without any fields.

pub fn new_empty_stream(name: impl Into<String>) -> Record[src]

Construct a new record with a valid and ready bit.

pub fn insert_new_field(
    &mut self,
    name: impl Into<String>,
    typ: Type,
    reversed: bool
)
[src]

Create a new field and add it to the record.

pub fn insert(&mut self, field: Field)[src]

Add a field to the record.

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

Returns true if the record contains a field that is reversed.

pub fn fields(&self) -> impl Iterator<Item = &Field>[src]

Returns an iterable over the fields.

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

Returns true if record contains no fields.

pub fn append_name_nested(&self, with: impl Into<String>) -> Self[src]

Append a string to the name of this record, and any nested records.

Trait Implementations

impl Clone for Record[src]

impl Debug for Record[src]

impl PartialEq<Record> for Record[src]

impl StructuralPartialEq for Record[src]

Auto Trait Implementations

impl RefUnwindSafe for Record

impl Send for Record

impl Sync for Record

impl Unpin for Record

impl UnwindSafe for Record

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.