pub struct Detached;
Expand description
A special store that does nothing, to be used with detached trees that don’t use a store
Trait Implementations
sourceimpl BlobStore for Detached
impl BlobStore for Detached
The implementation of NoStore will panic whenever it is used
sourcefn read(&self, _id: &[u8]) -> Result<Blob<'static>, Self::Error>
fn read(&self, _id: &[u8]) -> Result<Blob<'static>, Self::Error>
Read a blob with the given id. Since ids can be of arbitrary size, passed as a slice
sourcefn write(&self, _data: &[u8]) -> Result<Vec<u8>, Self::Error>
fn write(&self, _data: &[u8]) -> Result<Vec<u8>, Self::Error>
Write a blob, returning an id into a target vec
tgt
. Read moresourcefn needs_deep_detach(&self) -> bool
fn needs_deep_detach(&self) -> bool
True if the store needs deep detach. This is true for basically all stores except the special NoStore store
sourceimpl<B: BlobStore> NodeConverter<Detached, B> for DowncastConverter
impl<B: BlobStore> NodeConverter<Detached, B> for DowncastConverter
fn convert_node(
&self,
node: &TreeNodeRef<'_, Detached>,
_: &Detached
) -> Result<TreeNode<B>, NoError>
fn convert_node_shortened(
&self,
node: &TreeNodeRef<'_, Detached>,
store: &Detached,
n: usize
) -> Result<TreeNode<B>, NoError>
fn convert_value(
&self,
bv: &ValueRef<'_>,
_: &Detached
) -> Result<Value<B>, NoError>
Auto Trait Implementations
impl RefUnwindSafe for Detached
impl Send for Detached
impl Sync for Detached
impl Unpin for Detached
impl UnwindSafe for Detached
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more