[−][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 Clone for UniversalRealType
[src]
pub fn clone(&self) -> UniversalRealType
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for UniversalRealType
[src]
impl Debug for UniversalRealType
[src]
impl Display for UniversalRealType
[src]
impl FloatingType for UniversalRealType
[src]
pub fn as_type(&self) -> &dyn Type
[src]
pub fn range(&self) -> Option<&Range<f64>>
[src]
pub fn base_type(&self) -> &dyn Type
[src]
pub fn is_universal(&self) -> bool
[src]
pub fn is_equal(&self, other: &dyn FloatingType) -> bool
[src]
pub fn resolution_func(&self) -> Option<usize>
[src]
pub fn as_basetype(&self) -> Option<&FloatingBasetype>
[src]
pub fn as_subtype(&self) -> Option<&FloatingSubtype<'_>>
[src]
pub fn unwrap_basetype(&self) -> &FloatingBasetype
[src]
pub fn unwrap_subtype(&self) -> &FloatingSubtype<'_>
[src]
impl Type for UniversalRealType
[src]
pub fn is_scalar(&self) -> bool
[src]
pub fn is_discrete(&self) -> bool
[src]
pub fn is_numeric(&self) -> bool
[src]
pub fn is_composite(&self) -> bool
[src]
pub fn as_any(&self) -> AnyType<'_>
[src]
pub fn into_owned<'a>(self) -> OwnedType<'a> where
Self: 'a,
[src]
Self: 'a,
pub fn to_owned<'a>(&self) -> OwnedType<'a> where
Self: 'a,
[src]
Self: 'a,
pub fn is_equal(&self, other: &dyn Type) -> bool
[src]
pub fn is_implicitly_castable(&self, _into: &dyn Type) -> bool
[src]
Auto Trait Implementations
impl RefUnwindSafe for UniversalRealType
[src]
impl Send for UniversalRealType
[src]
impl Sync for UniversalRealType
[src]
impl Unpin for UniversalRealType
[src]
impl UnwindSafe for UniversalRealType
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,