pub enum Number {
Binary(NumberBinary),
Decimal(NumberDecimal),
Hexadecimal(NumberHexadecimal),
Octal(NumberOctal),
}Variants§
Implementations§
Source§impl Number
impl Number
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§
impl Copy for Number
impl Eq for Number
impl StructuralPartialEq for Number
Auto Trait Implementations§
impl Freeze for Number
impl RefUnwindSafe for Number
impl Send for Number
impl Sync for Number
impl Unpin for Number
impl UnsafeUnpin for Number
impl UnwindSafe for Number
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