Struct moore_vhdl::hir::RecordConstraint
source · [−]pub struct RecordConstraint {
pub span: Span,
pub elems: Vec<(Spanned<Name>, Box<Spanned<ElementConstraint>>)>,
}
Expand description
A record constraint as per IEEE 1076-2008 section 5.3.3.
Fields
span: Span
The span this constraint covers.
elems: Vec<(Spanned<Name>, Box<Spanned<ElementConstraint>>)>
Constraints for individual elements.
Trait Implementations
sourceimpl Debug for RecordConstraint
impl Debug for RecordConstraint
sourceimpl From<RecordConstraint> for Constraint
impl From<RecordConstraint> for Constraint
sourcefn from(value: RecordConstraint) -> Constraint
fn from(value: RecordConstraint) -> Constraint
Performs the conversion.
sourceimpl From<RecordConstraint> for ElementConstraint
impl From<RecordConstraint> for ElementConstraint
sourcefn from(value: RecordConstraint) -> ElementConstraint
fn from(value: RecordConstraint) -> ElementConstraint
Performs the conversion.
sourceimpl HasSpan for RecordConstraint
impl HasSpan for RecordConstraint
sourcefn human_span(&self) -> Span
fn human_span(&self) -> Span
Obtain a span which can be used to refer to this node in error messages
presented to humans. This will generally be the name for things like
entities, processes, and variables. Defaults to return whatever span()
returns. Read more
Auto Trait Implementations
impl RefUnwindSafe for RecordConstraint
impl Send for RecordConstraint
impl Sync for RecordConstraint
impl Unpin for RecordConstraint
impl UnwindSafe for RecordConstraint
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more