Enum moore_vhdl::hir::DiscreteRange
source · [−]pub enum DiscreteRange {
Subtype(SubtypeIndRef),
Range(Range),
}
Expand description
A discrete range.
See IEEE 1076-2008 section 5.3.2.1.
discrete_range := discrete.subtype_indication | range
Variants
Subtype(SubtypeIndRef)
A discrete range specified by a discrete subtype.
Range(Range)
A discrete range specified by a range.
Trait Implementations
sourceimpl Debug for DiscreteRange
impl Debug for DiscreteRange
sourceimpl From<Range> for DiscreteRange
impl From<Range> for DiscreteRange
sourcefn from(value: Range) -> DiscreteRange
fn from(value: Range) -> DiscreteRange
Performs the conversion.
sourceimpl From<SubtypeIndRef> for DiscreteRange
impl From<SubtypeIndRef> for DiscreteRange
sourcefn from(value: SubtypeIndRef) -> DiscreteRange
fn from(value: SubtypeIndRef) -> DiscreteRange
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for DiscreteRange
impl Send for DiscreteRange
impl Sync for DiscreteRange
impl Unpin for DiscreteRange
impl UnwindSafe for DiscreteRange
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