Struct nt_hive::KeyNode [−][src]
A single key that belongs to a Hive
.
It has a name and possibly subkeys (KeyNode
) and values (KeyValue
).
On-Disk Signature: nk
Implementations
impl<H, B> KeyNode<H, B> where
H: Deref<Target = Hive<B>>,
B: ByteSlice,
[src]
H: Deref<Target = Hive<B>>,
B: ByteSlice,
pub fn name(&self) -> Result<NtHiveNameString<'_>>
[src]
Returns the name of this Key Node.
pub fn subkey(&self, name: &str) -> Option<Result<KeyNode<&Hive<B>, B>>>
[src]
Finds a single subkey by name using efficient binary search.
pub fn subkeys(&self) -> Option<Result<SubKeyNodes<'_, B>>>
[src]
Returns an iterator over the subkeys of this Key Node.
pub fn subpath(&self, path: &str) -> Option<Result<KeyNode<&Hive<B>, B>>>
[src]
Traverses the given subpath and returns the KeyNode
of the last path element.
Path elements must be separated by backslashes.
pub fn value(&self, name: &str) -> Option<Result<KeyValue<&Hive<B>, B>>>
[src]
Finds a single value by name.
pub fn values(&self) -> Option<Result<KeyValues<'_, B>>>
[src]
Returns an iterator over the values of this Key Node.
Trait Implementations
impl<H: Clone + Deref<Target = Hive<B>>, B: Clone + ByteSlice> Clone for KeyNode<H, B>
[src]
impl<B> Eq for KeyNode<&Hive<B>, B> where
B: ByteSlice,
[src]
B: ByteSlice,
impl<B> PartialEq<KeyNode<&'_ Hive<B>, B>> for KeyNode<&Hive<B>, B> where
B: ByteSlice,
[src]
B: ByteSlice,
Auto Trait Implementations
impl<H, B> RefUnwindSafe for KeyNode<H, B> where
H: RefUnwindSafe,
[src]
H: RefUnwindSafe,
impl<H, B> Send for KeyNode<H, B> where
H: Send,
[src]
H: Send,
impl<H, B> Sync for KeyNode<H, B> where
H: Sync,
[src]
H: Sync,
impl<H, B> Unpin for KeyNode<H, B> where
H: Unpin,
[src]
H: Unpin,
impl<H, B> UnwindSafe for KeyNode<H, B> where
H: UnwindSafe,
[src]
H: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,