[][src]Trait panoradix::RadixKey

pub trait RadixKey: ToOwned {
    type Component: KeyComponent;
    fn as_slice(&self) -> &[Self::Component];
fn from_vec(v: Vec<Self::Component>) -> Self::Owned; }

A key that can be inserted in both RadixSet and RadixMap.

These keys should be equivalent to slices of T: Ord + Eq + Clone.

Associated Types

type Component: KeyComponent

A single component of the key. Note that it should be Ord + Eq + Clone.

Loading content...

Required methods

fn as_slice(&self) -> &[Self::Component]

Get a slice of key components to integrate the key in a radix tree.

fn from_vec(v: Vec<Self::Component>) -> Self::Owned

Given a merged vec of components, build an owned.

Loading content...

Implementors

Loading content...