Enum moore_vhdl::konst2::AnyConst [−][src]
pub enum AnyConst<'r, 't: 'r> {
Integer(&'r IntegerConst<'t>),
Floating(&'r FloatingConst<'t>),
}
Expand description
A borrowed constant.
Variants
Integer(&'r IntegerConst<'t>)
Tuple Fields of Integer
0: &'r IntegerConst<'t>
Floating(&'r FloatingConst<'t>)
Tuple Fields of Floating
0: &'r FloatingConst<'t>
Implementations
Returns Some(k)
if the constant is Integer(k)
, None
otherwise.
Returns Some(k)
if the constant is Floating(k)
, None
otherwise.
Returns an &IntegerConst
or panics if the constant is not Integer
.
Returns a &FloatingConst
or panics if the constant is not Floating
.
Trait Implementations
Auto Trait Implementations
impl<'r, 't> !RefUnwindSafe for AnyConst<'r, 't>
impl<'r, 't> !UnwindSafe for AnyConst<'r, 't>
Blanket Implementations
Mutably borrows from an owned value. Read more