Trait mesh_protobuf::encoding::FromNumber
source · pub trait FromNumber: Copy {
// Required methods
fn from_i64(v: i64) -> Result<Self>;
fn from_u64(v: u64) -> Result<Self>;
}
Expand description
A trait for converting a value to from u64 for use in varint encodings.
N.B. The protobuf behavior is to truncate integers rather than fail on overflow.
Required Methods§
Object Safety§
This trait is not object safe.