[−][src]Struct moore_vhdl::hir::LitExpr
A literal expression.
Methods
impl LitExpr
[src]
impl LitExpr
pub fn new_integer(span: Span, value: BigInt) -> LitExpr | [src] |
Create a new integer literal expression.
pub fn new_float(span: Span, value: BigRational) -> LitExpr | [src] |
Create a new float literal expression.
pub fn value(&self) -> &LitExprValue | [src] |
Return the constant value of the literal.
pub fn is_integer(&self) -> bool | [src] |
Check if this is an integer literal.
pub fn is_float(&self) -> bool | [src] |
Check if this is a floating-point literal.
pub fn integer_value(&self) -> Option<&BigInt> | [src] |
Return the literal's integer value, or None
if it is not an integer.
pub fn float_value(&self) -> Option<&BigRational> | [src] |
Return the literal's float value, or None
if it is not an float.
Trait Implementations
impl<'a, 't> Alloc<'a, 'a, LitExpr> for Arenas2<'t> where
't: 'a,
[src]
impl<'a, 't> Alloc<'a, 'a, LitExpr> for Arenas2<'t> where
't: 'a,
impl<'t> Node<'t> for LitExpr
[src]
impl<'t> Node<'t> for LitExpr
fn span(&self) -> Span | [src] |
fn desc_kind(&self) -> String | [src] |
fn accept(&'t self, visitor: &mut dyn Visitor<'t>) | [src] |
fn walk(&'t self, _visitor: &mut dyn Visitor<'t>) | [src] |
fn desc_name(&self) -> String | [src] |
A human-readable description of the node, including its name. Read more
impl<'t> Expr2<'t> for LitExpr
[src]
impl<'t> Expr2<'t> for LitExpr
fn typeval( | [src] |
fn constant_value( | [src] |
impl Debug for LitExpr
[src]
impl Debug for LitExpr
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)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> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |