pub struct UniversalIntegerType;
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.
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);
Converts from &Type
to AnyType
.
Convert into an owned type.
Check if two types are equal.
Check if the type can be implicitly cast to another.
The range of values this integer can assume. Read more
The base type of this integer.
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.
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
Converts the given value to a String
. Read more
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)