Skip to main content

VariableOrderableBytes

Trait VariableOrderableBytes 

Source
pub trait VariableOrderableBytes: OrderableBytes { }
Expand description

An OrderableBytes encoding whose length varies with the value.

A value sorts before any longer value it is a prefix of. The bytes do not mark where they end, so they must never be padded or concatenated: see variable for why, and for the implementations.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl VariableOrderableBytes for String

Source§

impl VariableOrderableBytes for Vec<u8>

Source§

impl VariableOrderableBytes for [u8]

Source§

impl VariableOrderableBytes for str

Source§

impl<T: VariableOrderableBytes + ?Sized> VariableOrderableBytes for &T

Implementors§