[−][src]Struct moore_vhdl::ty2::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.
Example
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);
Trait Implementations
impl Clone for UniversalIntegerType
[src]
pub fn clone(&self) -> UniversalIntegerType
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for UniversalIntegerType
[src]
impl Debug for UniversalIntegerType
[src]
impl Display for UniversalIntegerType
[src]
impl IntegerType for UniversalIntegerType
[src]
pub fn as_type(&self) -> &dyn Type
[src]
pub fn range(&self) -> Option<&Range<BigInt>>
[src]
pub fn base_type(&self) -> &dyn Type
[src]
pub fn is_universal(&self) -> bool
[src]
pub fn is_equal(&self, other: &dyn IntegerType) -> bool
[src]
pub fn resolution_func(&self) -> Option<usize>
[src]
pub fn as_basetype(&self) -> Option<&IntegerBasetype>
[src]
pub fn as_subtype(&self) -> Option<&IntegerSubtype<'_>>
[src]
pub fn unwrap_basetype(&self) -> &IntegerBasetype
[src]
pub fn unwrap_subtype(&self) -> &IntegerSubtype<'_>
[src]
impl Type for UniversalIntegerType
[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 UniversalIntegerType
[src]
impl Send for UniversalIntegerType
[src]
impl Sync for UniversalIntegerType
[src]
impl Unpin for UniversalIntegerType
[src]
impl UnwindSafe for UniversalIntegerType
[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>,