Struct darklua_core::nodes::DecimalNumber
source · [−]pub struct DecimalNumber { /* private fields */ }Implementations
sourceimpl DecimalNumber
impl DecimalNumber
pub fn new(value: f64) -> Self
pub fn with_token(self, token: Token) -> Self
pub fn set_token(&mut self, token: Token)
pub fn with_exponent(self, exponent: i64, is_uppercase: bool) -> Self
pub fn set_uppercase(&mut self, is_uppercase: bool)
pub fn get_raw_float(&self) -> f64
pub fn is_uppercase(&self) -> Option<bool>
pub fn get_exponent(&self) -> Option<i64>
pub fn compute_value(&self) -> f64
pub fn clear_comments(&mut self)
pub fn clear_whitespaces(&mut self)
Trait Implementations
sourceimpl Clone for DecimalNumber
impl Clone for DecimalNumber
sourcefn clone(&self) -> DecimalNumber
fn clone(&self) -> DecimalNumber
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for DecimalNumber
impl Debug for DecimalNumber
sourceimpl From<DecimalNumber> for NumberExpression
impl From<DecimalNumber> for NumberExpression
sourcefn from(number: DecimalNumber) -> Self
fn from(number: DecimalNumber) -> Self
Converts to this type from the input type.
sourceimpl From<DecimalNumber> for Expression
impl From<DecimalNumber> for Expression
sourcefn from(number: DecimalNumber) -> Self
fn from(number: DecimalNumber) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<DecimalNumber> for DecimalNumber
impl PartialEq<DecimalNumber> for DecimalNumber
sourcefn eq(&self, other: &DecimalNumber) -> bool
fn eq(&self, other: &DecimalNumber) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &DecimalNumber) -> bool
fn ne(&self, other: &DecimalNumber) -> bool
This method tests for !=.
impl Eq for DecimalNumber
impl StructuralPartialEq for DecimalNumber
Auto Trait Implementations
impl RefUnwindSafe for DecimalNumber
impl Send for DecimalNumber
impl Sync for DecimalNumber
impl Unpin for DecimalNumber
impl UnwindSafe for DecimalNumber
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more