pub trait Fits64: Copy {
    unsafe fn from_u64(x: u64) -> Self;
    fn to_u64(self) -> u64;
}
Expand description

This describes a type which can be stored in 64 bits without loss. It is defined for all signed and unsigned integer types, as well as char. In each case, we store sets consisting exclusively of “small” integers efficiently.

Required Methods

Convert back from a u64. This is unsafe, since it is only infallible (and lossless) if the u64 originally came from type Self.

Convert to a u64. This should be infallible.

Implementations on Foreign Types

Implementors