Trait simd_json::prelude::base::ValueAsScalar
source · pub trait ValueAsScalar {
Show 18 methods
// Required methods
fn as_null(&self) -> Option<()>;
fn as_bool(&self) -> Option<bool>;
fn as_i64(&self) -> Option<i64>;
fn as_u64(&self) -> Option<u64>;
fn as_f64(&self) -> Option<f64>;
fn as_str(&self) -> Option<&str>;
// Provided methods
fn as_i128(&self) -> Option<i128> { ... }
fn as_i32(&self) -> Option<i32> { ... }
fn as_i16(&self) -> Option<i16> { ... }
fn as_i8(&self) -> Option<i8> { ... }
fn as_u128(&self) -> Option<u128> { ... }
fn as_usize(&self) -> Option<usize> { ... }
fn as_u32(&self) -> Option<u32> { ... }
fn as_u16(&self) -> Option<u16> { ... }
fn as_u8(&self) -> Option<u8> { ... }
fn as_f32(&self) -> Option<f32> { ... }
fn cast_f64(&self) -> Option<f64> { ... }
fn as_char(&self) -> Option<char> { ... }
}
Expand description
Access to scalar value types