Skip to main content

ToObject

Trait ToObject 

Source
pub trait ToObject {
    // Required method
    fn to_object(self) -> Result<Object, Error>;
}
Expand description

Trait implemented for types can be converted into an Object.

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 ToObject for i128

Source§

impl ToObject for isize

Source§

impl ToObject for u64

Source§

impl ToObject for u128

Source§

impl ToObject for usize

Source§

impl<K, V> ToObject for HashMap<K, V>
where K: Into<String>, V: ToObject,

Source§

impl<T> ToObject for Vec<T>
where T: ToObject,

Implementors§