Skip to main content

ProtoIntWrapper

Trait ProtoIntWrapper 

Source
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§

Source

fn name() -> &'static str

The name of the associated type (i.e. “sfixed32”)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§