Skip to main content

BspToValue

Trait BspToValue 

Source
pub trait BspToValue {
    // Required method
    fn to_value(self) -> BspValue;
}
Expand description

Serializes a typed output back into a type-erased BspValue container.

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl BspToValue for String

Source§

impl BspToValue for Value

Source§

impl BspToValue for bool

Source§

impl BspToValue for f64

Source§

impl BspToValue for i64

Source§

impl<T: Any + Send + Sync> BspToValue for Arc<T>

Source§

impl<T: BspToValue + 'static> BspToValue for Option<T>

Source§

impl<T: BspToValue + Send + Sync + 'static> BspToValue for Vec<T>

Implementors§