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

Implementations on Foreign Types

impl FromRegValue for String
[src]

impl FromRegValue for OsString
[src]

impl FromRegValue for u32
[src]

impl FromRegValue for u64
[src]

Implementors