struct DirectoryEntries {
entries: BTreeMap<String, TmpNode>,
}
Expand description
Directory entries collection with type-safe operations
Fields§
§entries: BTreeMap<String, TmpNode>
Implementations§
Source§impl DirectoryEntries
impl DirectoryEntries
Sourcefn insert(&mut self, name: String, node: TmpNode) -> Option<TmpNode>
fn insert(&mut self, name: String, node: TmpNode) -> Option<TmpNode>
Add a new entry to the directory
Sourcefn contains_key(&self, name: &str) -> bool
fn contains_key(&self, name: &str) -> bool
Check if a key exists (alias for contains)
Sourcefn entry_names(&self) -> impl Iterator<Item = &String>
fn entry_names(&self) -> impl Iterator<Item = &String>
Get all entry names
Sourcefn entries_mut(&mut self) -> impl Iterator<Item = (&String, &mut TmpNode)>
fn entries_mut(&mut self) -> impl Iterator<Item = (&String, &mut TmpNode)>
Get mutable iterator over entries
Trait Implementations§
Source§impl Clone for DirectoryEntries
impl Clone for DirectoryEntries
Source§fn clone(&self) -> DirectoryEntries
fn clone(&self) -> DirectoryEntries
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for DirectoryEntries
impl Default for DirectoryEntries
Source§fn default() -> DirectoryEntries
fn default() -> DirectoryEntries
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DirectoryEntries
impl RefUnwindSafe for DirectoryEntries
impl Send for DirectoryEntries
impl Sync for DirectoryEntries
impl Unpin for DirectoryEntries
impl UnwindSafe for DirectoryEntries
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)