pub struct Db { /* private fields */ }Implementations§
Source§impl Db
impl Db
pub fn open_tree(&self, name: &str) -> Result<Tree>
pub fn relative_column(&self, base: &Path, offset: i32) -> Result<Option<Path>>
pub fn relative_row(&self, base: &Path, offset: i32) -> Result<Option<Path>>
pub fn lookup<P: AsRef<[u8]>>(&self, path: P) -> Result<Option<Datum>>
pub fn lookup_value<P: AsRef<[u8]>>(&self, path: P) -> Option<Value>
pub fn iter( &self, ) -> impl Iterator<Item = Result<(Path, DatumKind, IVec)>> + 'static
pub fn iter_prefix( &self, prefix: Path, ) -> impl Iterator<Item = Result<(Path, DatumKind, IVec)>> + 'static
Sourcepub fn prefix_len(&self, prefix: &Path) -> usize
pub fn prefix_len(&self, prefix: &Path) -> usize
This is O(N)
pub fn locked(&self) -> impl Iterator<Item = Result<(Path, bool)>> + 'static
pub fn roots(&self) -> impl Iterator<Item = Result<Path>> + 'static
pub fn clear(&self) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Db
impl !RefUnwindSafe for Db
impl Send for Db
impl Sync for Db
impl Unpin for Db
impl !UnwindSafe for Db
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more