[−][src]Struct moore_vhdl::konst2::FloatingConst
A constant float value.
Methods
impl<'t> FloatingConst<'t>
[src]
pub fn try_new(
ty: &'t dyn FloatingType,
value: f64
) -> Result<FloatingConst<'t>, ConstError>
[src]
ty: &'t dyn FloatingType,
value: f64
) -> Result<FloatingConst<'t>, ConstError>
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]
't: 'a,
fn alloc(&'a self, value: FloatingConst<'t>) -> &'a mut FloatingConst<'t>
[src]
impl<'t> Const2<'t> for FloatingConst<'t>
[src]
fn ty(&self) -> &'t dyn Type
[src]
fn as_any<'a>(&'a self) -> AnyConst<'a, 't>
[src]
fn into_owned(self) -> OwnedConst<'t>
[src]
fn to_owned(&self) -> OwnedConst<'t>
[src]
fn cast(&self, ty: &'t dyn Type) -> Result<Cow<dyn Const2<'t> + 't>, ConstError>
[src]
impl<'t> Clone for FloatingConst<'t>
[src]
fn clone(&self) -> FloatingConst<'t>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'t> Eq for FloatingConst<'t>
[src]
impl<'t> PartialEq<FloatingConst<'t>> for FloatingConst<'t>
[src]
fn eq(&self, other: &FloatingConst<'t>) -> bool
[src]
fn ne(&self, other: &FloatingConst<'t>) -> bool
[src]
impl<'t> Display for FloatingConst<'t>
[src]
impl<'t> Debug for FloatingConst<'t>
[src]
Auto Trait Implementations
impl<'t> !Send for FloatingConst<'t>
impl<'t> !Sync for FloatingConst<'t>
impl<'t> Unpin for FloatingConst<'t>
impl<'t> !UnwindSafe for FloatingConst<'t>
impl<'t> !RefUnwindSafe for FloatingConst<'t>
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,