pub trait Address: Copy {
type Nibbles: AsRef<[u8]>;
// Required methods
fn nibbles(self) -> Self::Nibbles;
fn from_nibbles(nibbles: &[u8]) -> Self;
fn mask(self, masklen: u32) -> Self;
}Expand description
Address trait provides methods required for storing in TreeBitmap trie datastructure.
Required Associated Types§
Required Methods§
Sourcefn from_nibbles(nibbles: &[u8]) -> Self
fn from_nibbles(nibbles: &[u8]) -> Self
Convert from string of nibbles.
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.