Struct moore_vhdl::ty2::UniversalRealType [−][src]
pub struct UniversalRealType;
Expand description
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.
Example
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);
Trait Implementations
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.
Auto Trait Implementations
impl RefUnwindSafe for UniversalRealType
impl Send for UniversalRealType
impl Sync for UniversalRealType
impl Unpin for UniversalRealType
impl UnwindSafe for UniversalRealType
Blanket Implementations
Mutably borrows from an owned value. Read more