#[non_exhaustive]pub struct NumberText {
pub source_id: SourceId,
pub is_fractional: bool,
pub base: NumberBase,
pub number: Span,
pub suffix: Span,
}
Expand description
Configuration of a text number.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.source_id: SourceId
The source of the text.
is_fractional: bool
Indicates if it’s a decimal number.
base: NumberBase
The number literal kind.
number: Span
The number part of the parsed number.
suffix: Span
The suffix.
Trait Implementations§
Source§impl Clone for NumberText
impl Clone for NumberText
Source§fn clone(&self) -> NumberText
fn clone(&self) -> NumberText
Returns a copy of the value. Read more
1.0.0 · 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 NumberText
impl Debug for NumberText
Source§impl Hash for NumberText
impl Hash for NumberText
Source§impl Ord for NumberText
impl Ord for NumberText
Source§fn cmp(&self, other: &NumberText) -> Ordering
fn cmp(&self, other: &NumberText) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for NumberText
impl PartialEq for NumberText
Source§impl PartialOrd for NumberText
impl PartialOrd for NumberText
Source§impl TryClone for NumberText
impl TryClone for NumberText
impl Copy for NumberText
impl Eq for NumberText
impl StructuralPartialEq for NumberText
Auto Trait Implementations§
impl Freeze for NumberText
impl RefUnwindSafe for NumberText
impl Send for NumberText
impl Sync for NumberText
impl Unpin for NumberText
impl UnwindSafe for NumberText
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.