Struct nt_hive::KeyValue[][src]

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

A single value that belongs to a KeyNode. It has a name and attached data.

On-Disk Signature: vk

Implementations

Returns the raw data bytes as KeyValueData.

Checks if this is a REG_SZ or REG_EXPAND_SZ Key Value and returns the data as a String in that case.

Checks if this is a REG_DWORD or REG_DWORD_BIG_ENDIAN Key Value and returns the data as a u32 in that case.

Checks if this is a REG_MULTI_SZ Key Value and returns the data as a Vec of Strings in that case.

Checks if this is a REG_QWORD Key Value and returns the data as a u64 in that case.

Returns the size of the raw data.

Returns the data type of this Key Value.

Returns the name of this Key Value.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.