[−][src]Trait tinyset::u64set::Fits64
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
unsafe fn from_u64(x: u64) -> Self
Convert back from a u64. This is unsafe, since it is only
infallible (and lossless) if the u64
originally came from
type Self
.
fn to_u64(self) -> u64
Convert to a u64
. This should be infallible.
Provided methods
fn test_fits64(self) -> bool
verify that the conversion is lossless