[][src]Trait moore_vhdl::ty2::FloatingType

pub trait FloatingType: Type {
    pub fn as_type(&self) -> &dyn Type;
pub fn range(&self) -> Option<&Range<f64>>;
pub fn base_type(&self) -> &dyn Type;
pub fn is_equal(&self, other: &dyn FloatingType) -> bool; pub fn resolution_func(&self) -> Option<usize> { ... }
pub fn as_basetype(&self) -> Option<&FloatingBasetype> { ... }
pub fn as_subtype(&self) -> Option<&FloatingSubtype<'_>> { ... }
pub fn is_universal(&self) -> bool { ... }
pub fn unwrap_basetype(&self) -> &FloatingBasetype { ... }
pub fn unwrap_subtype(&self) -> &FloatingSubtype<'_> { ... } }

A real type.

This can either be an FloatingBasetype or an FloatingSubtype.

Required methods

pub fn as_type(&self) -> &dyn Type[src]

Convert to a type.

pub fn range(&self) -> Option<&Range<f64>>[src]

The range of values this real can assume.

Universal integers return None here, as they do not have a value range associated with them.

pub fn base_type(&self) -> &dyn Type[src]

The base type of this real.

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

Check if two real types are equal.

Loading content...

Provided methods

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

The resolution function associated with this type.

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

Returns Some if self is an FloatingBasetype, None otherwise.

pub fn as_subtype(&self) -> Option<&FloatingSubtype<'_>>[src]

Returns Some if self is an FloatingSubtype, None otherwise.

pub fn is_universal(&self) -> bool[src]

Checks whether this is a universal real type.

pub fn unwrap_basetype(&self) -> &FloatingBasetype[src]

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

pub fn unwrap_subtype(&self) -> &FloatingSubtype<'_>[src]

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

Loading content...

Trait Implementations

impl<'t> Eq for dyn FloatingType + 't[src]

impl<'t> PartialEq<dyn FloatingType + 't> for dyn FloatingType + 't[src]

Implementors

impl FloatingType for FloatingBasetype[src]

impl FloatingType for UniversalRealType[src]

impl<'t> FloatingType for FloatingSubtype<'t>[src]

Loading content...