pub struct UniversalRealType;
A universal real.
This is not strictly a separate type, but rather defined by the standard as
the real type with the largest range. However since we can represent
arbitrary numbers as f64
, we use this special marker type.
use moore_vhdl::ty2::{Type, UniversalRealType};
let ty = UniversalRealType;
assert_eq!(format!("{}", ty), "{universal real}");
assert_eq!(ty.is_scalar(), true);
assert_eq!(ty.is_discrete(), false);
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 real can assume. Read more
The base type of this real.
Checks whether this is a universal real type.
Check if two real types are equal.
The resolution function associated with this type.
Returns Some
if self is an FloatingBasetype
, None
otherwise.
Returns Some
if self is an FloatingSubtype
, None
otherwise.
Returns an &FloatingBasetype
or panics if the type is not a basetype.
Returns an &FloatingSubtype
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
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
Converts the given value to a String
. 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
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
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static