pub trait ProtoType<Rust>: Sized {
// Required methods
fn into_rust(self) -> Result<Rust, TryFromProtoError>;
fn from_rust(rust: &Rust) -> Self;
}
Expand description
Required Methods§
sourcefn into_rust(self) -> Result<Rust, TryFromProtoError>
fn into_rust(self) -> Result<Rust, TryFromProtoError>
See RustType::from_proto
.
sourcefn from_rust(rust: &Rust) -> Self
fn from_rust(rust: &Rust) -> Self
See RustType::into_proto
.
Object Safety§
This trait is not object safe.