[][src]Struct moore_vhdl::ty2::UniversalIntegerType

pub struct 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 Type for UniversalIntegerType
[src]

fn is_equal(&self, other: &dyn Type) -> bool
[src]

Check if two types are equal.

fn is_implicitly_castable(&self, _into: &dyn Type) -> bool
[src]

Check if the type can be implicitly cast to another.

impl IntegerType for UniversalIntegerType
[src]

fn resolution_func(&self) -> Option<usize>
[src]

The resolution function associated with this type.

fn as_basetype(&self) -> Option<&IntegerBasetype>
[src]

Returns Some if self is an IntegerBasetype, None otherwise.

fn as_subtype(&self) -> Option<&IntegerSubtype>
[src]

Returns Some if self is an IntegerSubtype, None otherwise.

fn unwrap_basetype(&self) -> &IntegerBasetype
[src]

Returns an &IntegerBasetype or panics if the type is not a basetype.

fn unwrap_subtype(&self) -> &IntegerSubtype
[src]

Returns an &IntegerSubtype or panics if the type is not a subtype.

impl Copy for UniversalIntegerType
[src]

impl Clone for UniversalIntegerType
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for UniversalIntegerType
[src]

impl Display for UniversalIntegerType
[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From for T
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.