Trait radixdb::node::NodeConverter
source · [−]pub trait NodeConverter<A, B: BlobStore> {
fn convert_node(
&self,
node: &TreeNodeRef<'_, A>,
store: &A
) -> Result<TreeNode<B>, A::Error>
where
A: BlobStore;
fn convert_node_shortened(
&self,
node: &TreeNodeRef<'_, A>,
store: &A,
n: usize
) -> Result<TreeNode<B>, A::Error>
where
A: BlobStore;
fn convert_value(
&self,
bv: &ValueRef<'_, A>,
store: &A
) -> Result<Value<B>, A::Error>
where
A: BlobStore;
}
Expand description
Converter that converts nodes from one kind of store to another
Required Methods
sourcefn convert_node(
fn convert_node(
&self,
node: &TreeNodeRef<'_, A>,
store: &A
) -> Result<TreeNode<B>, A::Error>where
A: BlobStore,
sourcefn convert_node_shortened(