Trait winreg::types::FromRegValue
source · pub trait FromRegValue: Sized {
// Required method
fn from_reg_value(val: &RegValue) -> Result<Self>;
}
Expand description
A trait for types that can be loaded from registry values.
NOTE: Uses from_utf16_lossy
when converting to String
.
NOTE: When converting to String
or OsString
, trailing NULL
characters are trimmed
and line separating NULL
characters in REG_MULTI_SZ
are replaced by \n
effectively representing the value as a multiline string.
When converting to Vec<String>
or Vec<OsString>
NULL
is used as a strings separator.
Required Methods§
fn from_reg_value(val: &RegValue) -> Result<Self>
Object Safety§
This trait is not object safe.