[−][src]Struct moore_vhdl::ty2::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.
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
impl Type for UniversalRealType
[src]
fn is_scalar(&self) -> bool
[src]
fn is_discrete(&self) -> bool
[src]
fn is_numeric(&self) -> bool
[src]
fn is_composite(&self) -> bool
[src]
fn as_any(&self) -> AnyType
[src]
fn into_owned<'a>(self) -> OwnedType<'a> where
Self: 'a,
[src]
Self: 'a,
fn to_owned<'a>(&self) -> OwnedType<'a> where
Self: 'a,
[src]
Self: 'a,
fn is_equal(&self, other: &dyn Type) -> bool
[src]
fn is_implicitly_castable(&self, _into: &dyn Type) -> bool
[src]
impl FloatingType for UniversalRealType
[src]
fn as_type(&self) -> &dyn Type
[src]
fn range(&self) -> Option<&Range<f64>>
[src]
fn base_type(&self) -> &dyn Type
[src]
fn is_universal(&self) -> bool
[src]
fn is_equal(&self, other: &dyn FloatingType) -> bool
[src]
fn resolution_func(&self) -> Option<usize>
[src]
fn as_basetype(&self) -> Option<&FloatingBasetype>
[src]
fn as_subtype(&self) -> Option<&FloatingSubtype>
[src]
fn unwrap_basetype(&self) -> &FloatingBasetype
[src]
fn unwrap_subtype(&self) -> &FloatingSubtype
[src]
impl Clone for UniversalRealType
[src]
fn clone(&self) -> UniversalRealType
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for UniversalRealType
[src]
impl Display for UniversalRealType
[src]
impl Debug for UniversalRealType
[src]
Auto Trait Implementations
impl Send for UniversalRealType
impl Sync for UniversalRealType
impl Unpin for UniversalRealType
impl UnwindSafe for UniversalRealType
impl RefUnwindSafe for UniversalRealType
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,