pub enum NumberValue {
Binary(NumberBinary),
Decimal(NumberDecimal),
Hexadecimal(NumberHexadecimal),
Octal(NumberOctal),
}Variants§
Implementations§
Source§impl NumberValue
impl NumberValue
pub fn into_binary(self) -> Option<NumberBinary>
pub fn into_decimal(self) -> Option<NumberDecimal>
pub fn into_hexadecimal(self) -> Option<NumberHexadecimal>
pub fn into_octal(self) -> Option<NumberOctal>
pub fn as_binary(&self) -> Option<&NumberBinary>
pub fn as_decimal(&self) -> Option<&NumberDecimal>
pub fn as_hexadecimal(&self) -> Option<&NumberHexadecimal>
pub fn as_octal(&self) -> Option<&NumberOctal>
pub fn is_binary(&self) -> bool
pub fn is_decimal(&self) -> bool
pub fn is_hexadecimal(&self) -> bool
pub fn is_octal(&self) -> bool
Trait Implementations§
Source§impl Debug for NumberValue
impl Debug for NumberValue
Source§impl<'a> Index<&'a NumberValue> for str
impl<'a> Index<&'a NumberValue> for str
Source§impl Index<NumberValue> for str
impl Index<NumberValue> for str
Auto Trait Implementations§
impl Freeze for NumberValue
impl RefUnwindSafe for NumberValue
impl Send for NumberValue
impl Sync for NumberValue
impl Unpin for NumberValue
impl UnsafeUnpin for NumberValue
impl UnwindSafe for NumberValue
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more