pub trait AsProxy {
Show 21 methods
// Required methods
fn i32(&self) -> i32;
fn i64(&self) -> i64;
fn u32(&self) -> u32;
fn u64(&self) -> u64;
fn f64(&self) -> f64;
fn str(&self) -> &str;
fn string(&self) -> String;
fn bool(&self) -> bool;
fn array(&self) -> Option<&Array>;
fn object(&self) -> Option<&Document>;
fn is_empty(&self) -> bool;
fn is_null(&self) -> bool;
fn is_array(&self) -> bool;
fn is_document(&self) -> bool;
fn is_object(&self) -> bool;
fn cast_string(&self) -> String;
fn cast_i64(&self) -> i64;
fn cast_f64(&self) -> f64;
fn cast_u64(&self) -> u64;
fn bracket(&self) -> &str;
// Provided method
fn inner(&self) -> &str { ... }
}Expand description
convert Value to Value
Required Methods§
fn i32(&self) -> i32
fn i64(&self) -> i64
fn u32(&self) -> u32
fn u64(&self) -> u64
fn f64(&self) -> f64
fn str(&self) -> &str
fn string(&self) -> String
fn bool(&self) -> bool
fn array(&self) -> Option<&Array>
fn object(&self) -> Option<&Document>
fn is_empty(&self) -> bool
fn is_null(&self) -> bool
fn is_array(&self) -> bool
fn is_document(&self) -> bool
fn is_object(&self) -> bool
fn cast_string(&self) -> String
fn cast_i64(&self) -> i64
fn cast_f64(&self) -> f64
fn cast_u64(&self) -> u64
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".