Skip to main content

Cast

Trait Cast 

Source
pub trait Cast<T> {
    // Required method
    fn cast(&self) -> Result<T>;
}
Expand description

A helper trait that performs non-consuming type conversions from JSONValues to Rust primitive types.

Required Methods§

Source

fn cast(&self) -> Result<T>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§