Trait ordermap::Size

source ·
pub(crate) trait Size {
    // Required method
    fn is_64_bit() -> bool;

    // Provided method
    fn is_same_size<T: Size>() -> bool { ... }
}
Expand description

Trait for the “size class”. Either u32 or u64 depending on the index size needed to address an entry’s indes in self.entries.

Required Methods§

Provided Methods§

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Size for u32

source§

impl Size for u64

Implementors§