[][src]Trait starling::traits::Data

pub trait Data {
    fn new() -> Self;
fn get_value(&self) -> &[u8];
fn set_value(&mut self, value: &[u8]); }

The required interface for structs representing data stored in the tree.

Required methods

fn new() -> Self

Creates a new Data node.

fn get_value(&self) -> &[u8]

Gets the value for the Data node.

fn set_value(&mut self, value: &[u8])

Sets the value for the Data node.

Loading content...

Implementors

impl Data for TreeData[src]

Loading content...