[][src]Struct ring::bits::BitLength

pub struct BitLength(_);

A length of an integer value, measured in bits.

Implementations

impl BitLength[src]

pub const fn from_usize_bits(bits: usize) -> Self[src]

Constructs a BitLength from bits, where bits is interpreted as a bit length.

pub fn from_usize_bytes(bytes: usize) -> Result<Self, Unspecified>[src]

Constructs a BitLength from bits, where bits is interpreted as a byte length.

Trait Implementations

impl Clone for BitLength[src]

impl Copy for BitLength[src]

impl Debug for BitLength[src]

impl Eq for BitLength[src]

impl PartialEq<BitLength> for BitLength[src]

impl PartialOrd<BitLength> for BitLength[src]

impl StructuralEq for BitLength[src]

impl StructuralPartialEq for BitLength[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.