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§

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl FromRegValue for u32

source§

impl FromRegValue for u64

source§

impl FromRegValue for String

source§

impl FromRegValue for Vec<String>

source§

impl FromRegValue for Vec<OsString>

source§

impl FromRegValue for OsString

Implementors§