Struct nt_hive::KeyNode[][src]

pub struct KeyNode<H: Deref<Target = Hive<B>>, B: ByteSlice> { /* fields omitted */ }

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]

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]

impl<B> PartialEq<KeyNode<&'_ Hive<B>, B>> for KeyNode<&Hive<B>, B> where
    B: ByteSlice
[src]

Auto Trait Implementations

impl<H, B> RefUnwindSafe for KeyNode<H, B> where
    H: RefUnwindSafe
[src]

impl<H, B> Send for KeyNode<H, B> where
    H: Send
[src]

impl<H, B> Sync for KeyNode<H, B> where
    H: Sync
[src]

impl<H, B> Unpin for KeyNode<H, B> where
    H: Unpin
[src]

impl<H, B> UnwindSafe for KeyNode<H, B> where
    H: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.