Enum csvenum::NumericType
source · pub enum NumericType {
Show 13 variants
i8,
i16,
i32,
i64,
u8,
u16,
u32,
u64,
u128,
f32,
f64,
isize,
usize,
}
Expand description
Represents all numeric types
Variants§
i8
i8
Property typestr
with value i8
i16
i16
Property typestr
with value i16
i32
i32
Property typestr
with value i32
i64
i64
Property typestr
with value i64
u8
u8
Property typestr
with value u8
u16
u16
Property typestr
with value u16
u32
u32
Property typestr
with value u32
u64
u64
Property typestr
with value u64
u128
u128
Property typestr
with value u128
f32
f32
Property typestr
with value f32
f64
f64
Property typestr
with value f64
isize
isize
Property typestr
with value isize
usize
usize
Property typestr
with value usize
Implementations§
source§impl NumericType
impl NumericType
pub fn get_all_variants() -> Vec<NumericType>
Trait Implementations§
source§impl Debug for NumericType
impl Debug for NumericType
source§impl PartialEq for NumericType
impl PartialEq for NumericType
source§fn eq(&self, other: &NumericType) -> bool
fn eq(&self, other: &NumericType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl RTypeTrait for NumericType
impl RTypeTrait for NumericType
source§fn from_typestr<T: AsRef<str>>(typestr: T) -> Result<Self, TypeError>where
Self: Sized,
fn from_typestr<T: AsRef<str>>(typestr: T) -> Result<Self, TypeError>where
Self: Sized,
Construct the RType from a string that contains type information i.e. “ &str “ Read more
source§fn to_typestr(&self) -> String
fn to_typestr(&self) -> String
Conversions into type representation Read more
source§fn to_typestr_no_ref(&self) -> String
fn to_typestr_no_ref(&self) -> String
get representation without references or lifetimes
str
source§fn to_typestr_no_life(&self) -> String
fn to_typestr_no_life(&self) -> String
get representation without lifetime
&str
source§fn collect_lifetimes(&self, into: &mut Vec<String>)
fn collect_lifetimes(&self, into: &mut Vec<String>)
collect lifetimes
source§fn value_is_valid(&self, valuestr: &str) -> bool
fn value_is_valid(&self, valuestr: &str) -> bool
Value is valid - assume an input of (2,2,[2,3,4]) -> Tuple(NumType,NumType,Array|Vec) Read more
source§fn get_breadth(&self, counter: usize) -> usize
fn get_breadth(&self, counter: usize) -> usize
Get nesting breadth
fn wrap_valuestr(&self, valuestr: &str) -> String
source§fn can_match_as_key(&self) -> bool
fn can_match_as_key(&self) -> bool
Whether the type can be used as the key in a match expression, floats can not.
impl Eq for NumericType
impl StructuralPartialEq for NumericType
Auto Trait Implementations§
impl Freeze for NumericType
impl RefUnwindSafe for NumericType
impl Send for NumericType
impl Sync for NumericType
impl Unpin for NumericType
impl UnwindSafe for NumericType
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