[−][src]Struct ring::bits::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]
fn partial_cmp(&self, other: &BitLength) -> Option<Ordering>
[src]
fn lt(&self, other: &BitLength) -> bool
[src]
fn le(&self, other: &BitLength) -> bool
[src]
fn gt(&self, other: &BitLength) -> bool
[src]
fn ge(&self, other: &BitLength) -> bool
[src]
impl StructuralEq for BitLength
[src]
impl StructuralPartialEq for BitLength
[src]
Auto Trait Implementations
impl RefUnwindSafe for BitLength
impl Send for BitLength
impl Sync for BitLength
impl Unpin for BitLength
impl UnwindSafe for BitLength
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,