Trait mz_proto::wire_compatible::WireCompatible

source ·
pub unsafe trait WireCompatible<T: Message>: Message + Default {
    // Provided method
    fn convert(old: &T) -> Self { ... }
Expand description

Denotes that Self is wire compatible with type T.

You should not implement this yourself, instead use the wire_compatible! macro.

Provided Methods§


fn convert(old: &T) -> Self

Converts the type T into Self by serializing T and deserializing as Self.

Object Safety§

This trait is not object safe.