Bucket

Trait Bucket 

Source
pub trait Bucket {
    type BucketType: Fundemental;

    const BUCKET_COUNT: usize;

    // Required method
    fn split(&self) -> [Self::BucketType; Self::BUCKET_COUNT];
}

Required Associated Constants§

Required Associated Types§

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Bucket for i8

Source§

const BUCKET_COUNT: usize = 1usize

Source§

type BucketType = u8

Source§

fn split(&self) -> [Self::BucketType; 1]

Source§

impl Bucket for i16

Source§

const BUCKET_COUNT: usize = 2usize

Source§

type BucketType = u8

Source§

fn split(&self) -> [Self::BucketType; 2]

Source§

impl Bucket for i32

Source§

const BUCKET_COUNT: usize = 4usize

Source§

type BucketType = u8

Source§

fn split(&self) -> [Self::BucketType; 4]

Source§

impl Bucket for i64

Source§

const BUCKET_COUNT: usize = 8usize

Source§

type BucketType = u8

Source§

fn split(&self) -> [Self::BucketType; 8]

Source§

impl Bucket for i128

Source§

const BUCKET_COUNT: usize = 16usize

Source§

type BucketType = u8

Source§

fn split(&self) -> [Self::BucketType; 16]

Source§

impl Bucket for isize

Source§

const BUCKET_COUNT: usize = 4usize

Source§

type BucketType = u8

Source§

fn split(&self) -> [Self::BucketType; 4]

Source§

impl Bucket for u8

Source§

const BUCKET_COUNT: usize = 1usize

Source§

type BucketType = u8

Source§

fn split(&self) -> [Self::BucketType; 1]

Source§

impl Bucket for u16

Source§

const BUCKET_COUNT: usize = 2usize

Source§

type BucketType = u8

Source§

fn split(&self) -> [Self::BucketType; 2]

Source§

impl Bucket for u32

Source§

const BUCKET_COUNT: usize = 4usize

Source§

type BucketType = u8

Source§

fn split(&self) -> [Self::BucketType; 4]

Source§

impl Bucket for u64

Source§

const BUCKET_COUNT: usize = 8usize

Source§

type BucketType = u8

Source§

fn split(&self) -> [Self::BucketType; 8]

Source§

impl Bucket for u128

Source§

const BUCKET_COUNT: usize = 16usize

Source§

type BucketType = u8

Source§

fn split(&self) -> [Self::BucketType; 16]

Source§

impl Bucket for usize

Source§

const BUCKET_COUNT: usize = 4usize

Source§

type BucketType = u8

Source§

fn split(&self) -> [Self::BucketType; 4]

Implementors§