pub enum PropertyData<'a> {
Sz(&'a str),
ExpandSz(&'a str),
Binary(&'a [u8]),
DwordLittleEndian(u32),
DwordBigEndian(u32),
Link(&'a str),
RegMultiSz(&'a [&'a str]),
}
Expand description
Data values that can be encoded into a registry property descriptor
Variants§
Sz(&'a str)
A registry property containing a string.
ExpandSz(&'a str)
A registry property containing a string that expands environment variables.
Binary(&'a [u8])
A registry property containing binary data.
DwordLittleEndian(u32)
A registry property containing a little-endian 32-bit integer.
DwordBigEndian(u32)
A registry property containing a big-endian 32-bit integer.
Link(&'a str)
A registry property containing a string that contains a symbolic link.
RegMultiSz(&'a [&'a str])
A registry property containing multiple strings.
Implementations§
Source§impl<'a> PropertyData<'a>
impl<'a> PropertyData<'a>
Sourcepub fn kind(&self) -> PropertyDataType
pub fn kind(&self) -> PropertyDataType
Gets the PropertyDataType
for this property value
Trait Implementations§
Source§impl<'a> Clone for PropertyData<'a>
impl<'a> Clone for PropertyData<'a>
Source§fn clone(&self) -> PropertyData<'a>
fn clone(&self) -> PropertyData<'a>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a> Debug for PropertyData<'a>
impl<'a> Debug for PropertyData<'a>
Source§impl<'a> Format for PropertyData<'a>
impl<'a> Format for PropertyData<'a>
Source§impl<'a> PartialEq for PropertyData<'a>
impl<'a> PartialEq for PropertyData<'a>
impl<'a> Copy for PropertyData<'a>
impl<'a> Eq for PropertyData<'a>
impl<'a> StructuralPartialEq for PropertyData<'a>
Auto Trait Implementations§
impl<'a> Freeze for PropertyData<'a>
impl<'a> RefUnwindSafe for PropertyData<'a>
impl<'a> Send for PropertyData<'a>
impl<'a> Sync for PropertyData<'a>
impl<'a> Unpin for PropertyData<'a>
impl<'a> UnwindSafe for PropertyData<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)