Struct moore_vhdl::ty2::UniversalIntegerType [−][src]
pub struct UniversalIntegerType;
Expand description
A universal integer.
This is not strictly a separate type, but rather defined by the standard as
the integer type with the largest range. However since we can represent
arbitrary numbers as BigInt
, we use this special marker type.
Example
use moore_vhdl::ty2::{Type, UniversalIntegerType};
let ty = UniversalIntegerType;
assert_eq!(format!("{}", ty), "{universal integer}");
assert_eq!(ty.is_scalar(), true);
assert_eq!(ty.is_discrete(), true);
assert_eq!(ty.is_numeric(), true);
Trait Implementations
The range of values this integer can assume. Read more
Checks whether this is a universal integer type.
Check if two integer types are equal.
The resolution function associated with this type.
Returns Some
if self is an IntegerBasetype
, None
otherwise.
Returns Some
if self is an IntegerSubtype
, None
otherwise.
Returns an &IntegerBasetype
or panics if the type is not a basetype.
Returns an &IntegerSubtype
or panics if the type is not a subtype.
Auto Trait Implementations
impl RefUnwindSafe for UniversalIntegerType
impl Send for UniversalIntegerType
impl Sync for UniversalIntegerType
impl Unpin for UniversalIntegerType
impl UnwindSafe for UniversalIntegerType
Blanket Implementations
Mutably borrows from an owned value. Read more