ordermap

Trait 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§

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 Size for u32

Source§

impl Size for u64

Implementors§