Trait LmdbOrdKeyIfUnaligned

Source
pub unsafe trait LmdbOrdKeyIfUnaligned: LmdbRawIfUnaligned + Ord {
    // Provided methods
    fn ordered_by_bytes() -> bool { ... }
    fn ordered_as_integer() -> bool { ... }
}
Expand description

Marker trait for types where Unaligned<T> is LmdbOrdKey.

All LmdbOrdKey + LmdbRaw are LmdbOrdKeyIfUnaligned.

§Unsafety

Behaviour is undefined if the FromLmdbBytes or Ord implementations panic.

Provided Methods§

Source

fn ordered_by_bytes() -> bool

Like LmdbOrdKey::ordered_by_bytes()

Source

fn ordered_as_integer() -> bool

Like LmdbOrdKey::ordered_as_integer()

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 LmdbOrdKeyIfUnaligned for i16

Source§

impl LmdbOrdKeyIfUnaligned for i32

Source§

impl LmdbOrdKeyIfUnaligned for i64

Source§

impl LmdbOrdKeyIfUnaligned for u16

Source§

impl LmdbOrdKeyIfUnaligned for u32

Source§

impl LmdbOrdKeyIfUnaligned for u64

Source§

impl<V: LmdbOrdKeyIfUnaligned> LmdbOrdKeyIfUnaligned for Wrapping<V>

Implementors§