Trait ring::bits::FromUsizeBytes
source · pub(crate) trait FromUsizeBytes: Sized {
// Required method
fn from_usize_bytes(bytes: usize) -> Result<Self, Unspecified>;
}
Required Methods§
sourcefn from_usize_bytes(bytes: usize) -> Result<Self, Unspecified>
fn from_usize_bytes(bytes: usize) -> Result<Self, Unspecified>
Constructs a BitLength
from the given length in bytes.
Fails if bytes * 8
is too large for a T
.
Object Safety§
This trait is not object safe.