pub trait PropUnwrap: Sized {
Show 28 methods
// Required methods
fn into_u8(self) -> Option<u8>;
fn into_u16(self) -> Option<u16>;
fn into_str(self) -> Option<ArcStr>;
fn into_i32(self) -> Option<i32>;
fn into_i64(self) -> Option<i64>;
fn into_u32(self) -> Option<u32>;
fn into_u64(self) -> Option<u64>;
fn into_f32(self) -> Option<f32>;
fn into_f64(self) -> Option<f64>;
fn into_bool(self) -> Option<bool>;
fn into_list(self) -> Option<Arc<Vec<Prop>>>;
fn into_map(self) -> Option<Arc<FxHashMap<ArcStr, Prop>>>;
fn into_ndtime(self) -> Option<NaiveDateTime>;
fn as_f64(&self) -> Option<f64>;
fn into_decimal(self) -> Option<BigDecimal>;
// Provided methods
fn unwrap_u8(self) -> u8 { ... }
fn unwrap_u16(self) -> u16 { ... }
fn unwrap_str(self) -> ArcStr { ... }
fn unwrap_i32(self) -> i32 { ... }
fn unwrap_i64(self) -> i64 { ... }
fn unwrap_u32(self) -> u32 { ... }
fn unwrap_u64(self) -> u64 { ... }
fn unwrap_f32(self) -> f32 { ... }
fn unwrap_f64(self) -> f64 { ... }
fn unwrap_bool(self) -> bool { ... }
fn unwrap_list(self) -> Arc<Vec<Prop>> { ... }
fn unwrap_map(self) -> Arc<FxHashMap<ArcStr, Prop>> { ... }
fn unwrap_ndtime(self) -> NaiveDateTime { ... }
}Required Methods§
fn into_u8(self) -> Option<u8>
fn into_u16(self) -> Option<u16>
fn into_str(self) -> Option<ArcStr>
fn into_i32(self) -> Option<i32>
fn into_i64(self) -> Option<i64>
fn into_u32(self) -> Option<u32>
fn into_u64(self) -> Option<u64>
fn into_f32(self) -> Option<f32>
fn into_f64(self) -> Option<f64>
fn into_bool(self) -> Option<bool>
fn into_list(self) -> Option<Arc<Vec<Prop>>>
fn into_map(self) -> Option<Arc<FxHashMap<ArcStr, Prop>>>
fn into_ndtime(self) -> Option<NaiveDateTime>
fn as_f64(&self) -> Option<f64>
fn into_decimal(self) -> Option<BigDecimal>
Provided Methods§
fn unwrap_u8(self) -> u8
fn unwrap_u16(self) -> u16
fn unwrap_str(self) -> ArcStr
fn unwrap_i32(self) -> i32
fn unwrap_i64(self) -> i64
fn unwrap_u32(self) -> u32
fn unwrap_u64(self) -> u64
fn unwrap_f32(self) -> f32
fn unwrap_f64(self) -> f64
fn unwrap_bool(self) -> bool
fn unwrap_list(self) -> Arc<Vec<Prop>>
fn unwrap_map(self) -> Arc<FxHashMap<ArcStr, Prop>>
fn unwrap_ndtime(self) -> NaiveDateTime
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.