[][src]Struct moore_vhdl::konst2::FloatingConst

pub struct FloatingConst<'t> { /* fields omitted */ }

A constant float value.

Implementations

impl<'t> FloatingConst<'t>[src]

pub fn try_new(
    ty: &'t dyn FloatingType,
    value: f64
) -> Result<FloatingConst<'t>, ConstError>
[src]

Create a new constant float.

Returns an OutOfRange error if the value is outside the type's range.

pub fn floating_type(&self) -> &'t dyn FloatingType[src]

Return the float type.

pub fn value(&self) -> f64[src]

Return the float value.

Trait Implementations

impl<'a, 't> Alloc<'a, 'a, FloatingConst<'t>> for ConstArena<'t> where
    't: 'a, 
[src]

impl<'t> Clone for FloatingConst<'t>[src]

impl<'t> Const2<'t> for FloatingConst<'t>[src]

impl<'t> Debug for FloatingConst<'t>[src]

impl<'t> Display for FloatingConst<'t>[src]

impl<'t> Eq for FloatingConst<'t>[src]

impl<'t> PartialEq<FloatingConst<'t>> for FloatingConst<'t>[src]

impl<'t> StructuralPartialEq for FloatingConst<'t>[src]

Auto Trait Implementations

impl<'t> !RefUnwindSafe for FloatingConst<'t>

impl<'t> !Send for FloatingConst<'t>

impl<'t> !Sync for FloatingConst<'t>

impl<'t> Unpin for FloatingConst<'t>

impl<'t> !UnwindSafe for FloatingConst<'t>

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.