pub struct DirectoryHandle { /* private fields */ }Expand description
Handle to a CCDB directory, allowing navigation and table discovery.
Implementations§
Source§impl DirectoryHandle
impl DirectoryHandle
Sourcepub fn meta(&self) -> &DirectoryMeta
pub fn meta(&self) -> &DirectoryMeta
Returns the directory metadata as loaded from CCDB.
Sourcepub fn dirs(&self) -> Vec<DirectoryHandle>
pub fn dirs(&self) -> Vec<DirectoryHandle>
Lists subdirectories directly under this directory.
Sourcepub fn dir(&self, path: &str) -> CCDBResult<DirectoryHandle>
pub fn dir(&self, path: &str) -> CCDBResult<DirectoryHandle>
Resolves a child directory given a relative path.
§Errors
This method returns an error if the directory cannot be found.
Sourcepub fn tables(&self) -> Vec<TypeTableHandle>
pub fn tables(&self) -> Vec<TypeTableHandle>
Lists tables that live directly under this directory.
Sourcepub fn table(&self, name: &str) -> CCDBResult<TypeTableHandle>
pub fn table(&self, name: &str) -> CCDBResult<TypeTableHandle>
Resolves a table within this directory by name.
§Errors
This method returns an error if the table cannot be found.
Trait Implementations§
Source§impl Clone for DirectoryHandle
impl Clone for DirectoryHandle
Source§fn clone(&self) -> DirectoryHandle
fn clone(&self) -> DirectoryHandle
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DirectoryHandle
impl !RefUnwindSafe for DirectoryHandle
impl Send for DirectoryHandle
impl Sync for DirectoryHandle
impl Unpin for DirectoryHandle
impl !UnwindSafe for DirectoryHandle
Blanket Implementations§
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