Enum checked_rs_macro_impl::params::NumberValue
source · pub enum NumberValue {
U8(u8),
U16(u16),
U32(u32),
U64(u64),
U128(u128),
USize(usize),
I8(i8),
I16(i16),
I32(i32),
I64(i64),
I128(i128),
ISize(isize),
}Variants§
U8(u8)
U16(u16)
U32(u32)
U64(u64)
U128(u128)
USize(usize)
I8(i8)
I16(i16)
I32(i32)
I64(i64)
I128(i128)
ISize(isize)
Implementations§
source§impl NumberValue
impl NumberValue
pub fn into_usize(self) -> usize
pub fn range(self, end: Self) -> NumberValueIter ⓘ
Trait Implementations§
source§impl Add<&NumberValue> for NumberValue
impl Add<&NumberValue> for NumberValue
source§impl Add<usize> for NumberValue
impl Add<usize> for NumberValue
source§impl Add for NumberValue
impl Add for NumberValue
source§impl Clone for NumberValue
impl Clone for NumberValue
source§fn clone(&self) -> NumberValue
fn clone(&self) -> NumberValue
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 NumberValue
impl Debug for NumberValue
source§impl Display for NumberValue
impl Display for NumberValue
source§impl From<i128> for NumberValue
impl From<i128> for NumberValue
source§impl From<i16> for NumberValue
impl From<i16> for NumberValue
source§impl From<i32> for NumberValue
impl From<i32> for NumberValue
source§impl From<i64> for NumberValue
impl From<i64> for NumberValue
source§impl From<i8> for NumberValue
impl From<i8> for NumberValue
source§impl From<isize> for NumberValue
impl From<isize> for NumberValue
source§impl From<u128> for NumberValue
impl From<u128> for NumberValue
source§impl From<u16> for NumberValue
impl From<u16> for NumberValue
source§impl From<u32> for NumberValue
impl From<u32> for NumberValue
source§impl From<u64> for NumberValue
impl From<u64> for NumberValue
source§impl From<u8> for NumberValue
impl From<u8> for NumberValue
source§impl From<usize> for NumberValue
impl From<usize> for NumberValue
source§impl Hash for NumberValue
impl Hash for NumberValue
source§impl Ord for NumberValue
impl Ord for NumberValue
source§fn cmp(&self, other: &NumberValue) -> Ordering
fn cmp(&self, other: &NumberValue) -> 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 NumberValue
impl PartialEq for NumberValue
source§fn eq(&self, other: &NumberValue) -> bool
fn eq(&self, other: &NumberValue) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for NumberValue
impl PartialOrd for NumberValue
source§fn partial_cmp(&self, other: &NumberValue) -> Option<Ordering>
fn partial_cmp(&self, other: &NumberValue) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl RangeBounds<NumberValue> for NumberValue
impl RangeBounds<NumberValue> for NumberValue
source§impl Sub<&NumberValue> for NumberValue
impl Sub<&NumberValue> for NumberValue
source§impl Sub<usize> for NumberValue
impl Sub<usize> for NumberValue
source§impl Sub for NumberValue
impl Sub for NumberValue
source§impl ToTokens for NumberValue
impl ToTokens for NumberValue
source§fn to_tokens(&self, tokens: &mut TokenStream)
fn to_tokens(&self, tokens: &mut TokenStream)
source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
source§fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
impl Copy for NumberValue
impl Eq for NumberValue
impl StructuralPartialEq for NumberValue
Auto Trait Implementations§
impl Freeze for NumberValue
impl RefUnwindSafe for NumberValue
impl Send for NumberValue
impl Sync for NumberValue
impl Unpin 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
source§impl<T> Spanned for Twhere
T: Spanned + ?Sized,
impl<T> Spanned for Twhere
T: Spanned + ?Sized,
source§fn span(&self) -> Span
fn span(&self) -> Span
Returns a
Span covering the complete contents of this syntax tree
node, or Span::call_site() if this node is empty.