pub trait ToProto<P>: Protobuf<P>{
// Provided methods
fn type_url() -> String { ... }
fn to_any(self) -> Any { ... }
}
Expand description
Types that implement this trait can be converted to
a raw Protobuf Any
type.
Provided Methods§
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.