[][src]Trait tinyset::set64::Fits64

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

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.

Loading content...

Implementations on Foreign Types

impl Fits64 for u64[src]

impl Fits64 for u32[src]

impl Fits64 for u16[src]

impl Fits64 for u8[src]

impl Fits64 for usize[src]

impl Fits64 for char[src]

impl Fits64 for i8[src]

impl Fits64 for i16[src]

impl Fits64 for i32[src]

impl Fits64 for i64[src]

impl Fits64 for isize[src]

Loading content...

Implementors

Loading content...