ToAny

Trait ToAny 

pub trait ToAny: Sized + Name {
    // Provided method
    fn to_any(self) -> Any { ... }
}

Provided Methods§

fn to_any(self) -> Any

Converts the type to prost_types::Any.

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.

Implementors§

§

impl<M> ToAny for M
where M: Name,