[]Struct servo_config::prefs::PREFS

struct PREFS {
    __private_field: (),
}

Fields

__private_field: ()

Methods from Deref<Target = Preferences<'static, Prefs>>

pub fn values(&self) -> Arc<RwLock<P>>[src]

Access to the data structure holding the preference values.

pub fn get(&self, key: &str) -> PrefValue[src]

Retrieve a preference using its key

pub fn iter<'a>(&'a self) -> impl Iterator<Item = (String, PrefValue)> + 'a[src]

Creates an iterator over all keys and values

pub fn keys<'a>(&'a self) -> impl Iterator<Item = &'a str> + 'a[src]

Creates an iterator over all keys

fn set_inner<V>(
    &self,
    key: &str,
    prefs: &mut P,
    val: V
) -> Result<(), PrefError> where
    V: Into<PrefValue>, 
[src]

pub fn set<V>(&self, key: &str, val: V) -> Result<(), PrefError> where
    V: Into<PrefValue>, 
[src]

Set a new value for a preference, using its key.

pub fn set_all<M>(&self, values: M) -> Result<(), PrefError> where
    M: IntoIterator<Item = (String, PrefValue)>, 
[src]

pub fn reset(&self, key: &str) -> Result<PrefValue, PrefError>[src]

pub fn reset_all(&self)[src]

Trait Implementations

impl Deref for PREFS

type Target = Preferences<'static, Prefs>

The resulting type after dereferencing.

impl LazyStatic for PREFS

Auto Trait Implementations

impl Send for PREFS

impl Sync for PREFS

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Erased for T[src]

impl<T> Same for T[src]

type Output = T

Should always be Self