leb128fmt

Trait SInt

Source
pub trait SInt: Sealed {
    const BITS: u32;
}
Expand description

Sealed trait for supported signed integer types.

Required Associated Constants§

Source

const BITS: u32

Size of the type in bits.

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.

Implementations on Foreign Types§

Source§

impl SInt for i8

Source§

const BITS: u32 = 8u32

Source§

impl SInt for i16

Source§

const BITS: u32 = 16u32

Source§

impl SInt for i32

Source§

const BITS: u32 = 32u32

Source§

impl SInt for i64

Source§

const BITS: u32 = 64u32

Source§

impl SInt for i128

Source§

const BITS: u32 = 128u32

Implementors§