Trait winreg::types::FromRegValue
[−]
[src]
pub trait FromRegValue: Sized { fn from_reg_value(val: &RegValue) -> Result<Self>; }
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, trailing NULL characters are trimmed
and line separating NULL characters in REG_MULTI_SZ are replaced by \n.
When converting to OsString, all NULL characters are left as is.
Required Methods
fn from_reg_value(val: &RegValue) -> Result<Self>
Implementations on Foreign Types
impl FromRegValue for String[src]
impl FromRegValue for Stringfn from_reg_value(val: &RegValue) -> Result<String>[src]
fn from_reg_value(val: &RegValue) -> Result<String>impl FromRegValue for OsString[src]
impl FromRegValue for OsStringfn from_reg_value(val: &RegValue) -> Result<OsString>[src]
fn from_reg_value(val: &RegValue) -> Result<OsString>impl FromRegValue for u32[src]
impl FromRegValue for u32fn from_reg_value(val: &RegValue) -> Result<u32>[src]
fn from_reg_value(val: &RegValue) -> Result<u32>impl FromRegValue for u64[src]
impl FromRegValue for u64fn from_reg_value(val: &RegValue) -> Result<u64>[src]
fn from_reg_value(val: &RegValue) -> Result<u64>