pub struct NumberLiteral {
pub domain: Symbol,
pub canonical: String,
}Expand description
A number literal: a domain symbol plus its canonical textual form.
The kernel carries the literal verbatim; concrete number domains and arithmetic are supplied by libraries.
Fields§
§domain: SymbolThe number domain naming how canonical is interpreted.
canonical: StringThe canonical textual representation of the number.
Trait Implementations§
Source§impl Clone for NumberLiteral
impl Clone for NumberLiteral
Source§fn clone(&self) -> NumberLiteral
fn clone(&self) -> NumberLiteral
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NumberLiteral
impl Debug for NumberLiteral
impl Eq for NumberLiteral
Source§impl Hash for NumberLiteral
impl Hash for NumberLiteral
Source§impl PartialEq for NumberLiteral
impl PartialEq for NumberLiteral
Source§fn eq(&self, other: &NumberLiteral) -> bool
fn eq(&self, other: &NumberLiteral) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NumberLiteral
Auto Trait Implementations§
impl Freeze for NumberLiteral
impl RefUnwindSafe for NumberLiteral
impl Send for NumberLiteral
impl Sync for NumberLiteral
impl Unpin for NumberLiteral
impl UnsafeUnpin for NumberLiteral
impl UnwindSafe for NumberLiteral
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