pub trait ProtoIntWrapper:
Num
+ Clone
+ Copy
+ Display
+ Debug
+ Eq
+ Ord
+ Hash
+ Default
+ Add<Self::Target>
+ Sub<Self::Target>
+ Mul<Self::Target>
+ Div<Self::Target>
+ Rem<Self::Target>
+ Into<Self::Target>
+ Borrow<Self::Target>
+ BorrowMut<Self::Target>
+ AsRef<Self::Target>
+ PartialOrd<Self::Target> {
type Target: Num + Clone + Copy + Display + Debug + Eq + Ord + Hash + Default;
// Required method
fn name() -> &'static str;
}Expand description
Trait for numbers that represent protobuf integer types, such as sint32 or fixed64.
Required Associated Types§
Required 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.