snarkvm_console_types_group

Trait IntegerTrait

Source
pub trait IntegerTrait<I, U8, U16, U32>:
    IntegerCore<I>
    + Pow<U8, Output = Self, Output = Self, Output = Self>
    + Shl<U8, Output = Self, Output = Self, Output = Self, Output = Self, Output = Self, Output = Self>
    + for<'a> Shl<&'a U8>
    + ShlChecked<U8, Output = Self, Output = Self, Output = Self>
    + ShlWrapped<U8, Output = Self, Output = Self, Output = Self>
    + ShlAssign<U8>
    + Shr<U8, Output = Self, Output = Self, Output = Self, Output = Self, Output = Self, Output = Self>
    + for<'a> Shr<&'a U8>
    + ShrChecked<U8, Output = Self, Output = Self, Output = Self>
    + ShrWrapped<U8, Output = Self, Output = Self, Output = Self>
    + ShrAssign<U8>
    + Pow<U16>
    + Shl<U16>
    + for<'a> Shl<&'a U16>
    + ShlChecked<U16>
    + ShlWrapped<U16>
    + ShlAssign<U16>
    + Shr<U16>
    + for<'a> Shr<&'a U16>
    + ShrChecked<U16>
    + ShrWrapped<U16>
    + ShrAssign<U16>
    + Pow<U32>
    + Shl<U32>
    + for<'a> Shl<&'a U32>
    + ShlChecked<U32>
    + ShlWrapped<U32>
    + ShlAssign<U32>
    + Shr<U32>
    + for<'a> Shr<&'a U32>
    + ShrChecked<U32>
    + ShrWrapped<U32>
    + ShrAssign<U32>
where I: IntegerType, U8: IntegerCore<u8>, U16: IntegerCore<u16>, U32: IntegerCore<u32>,
{ }
Expand description

Representation of an integer.

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.

Implementors§