pub enum RegistryValue {
Sz(String),
ExpandSz(String),
Dword(u32),
Qword(u64),
Binary(Vec<u8>),
MultiSz(Vec<String>),
}Expand description
One typed registry value. Mirrors the standard REG_SZ /
REG_DWORD / REG_BINARY / REG_MULTI_SZ shapes.
Variants§
Sz(String)
REG_SZ — null-terminated string.
ExpandSz(String)
REG_EXPAND_SZ — string with embedded %VAR%
references the loader is expected to expand.
Dword(u32)
REG_DWORD — 32-bit integer.
Qword(u64)
REG_QWORD — 64-bit integer.
Binary(Vec<u8>)
REG_BINARY — opaque bytes.
MultiSz(Vec<String>)
REG_MULTI_SZ — \0-separated list, terminated by
an extra \0.
Trait Implementations§
Source§impl Clone for RegistryValue
impl Clone for RegistryValue
Source§fn clone(&self) -> RegistryValue
fn clone(&self) -> RegistryValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RegistryValue
impl Debug for RegistryValue
Source§impl PartialEq for RegistryValue
impl PartialEq for RegistryValue
Source§fn eq(&self, other: &RegistryValue) -> bool
fn eq(&self, other: &RegistryValue) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for RegistryValue
impl StructuralPartialEq for RegistryValue
Auto Trait Implementations§
impl Freeze for RegistryValue
impl RefUnwindSafe for RegistryValue
impl Send for RegistryValue
impl Sync for RegistryValue
impl Unpin for RegistryValue
impl UnsafeUnpin for RegistryValue
impl UnwindSafe for RegistryValue
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