Struct stry_common::layered::Anulap[][src]

pub struct Anulap<'s> { /* fields omitted */ }

A simple layered config.

Implementations

impl<'s> Anulap<'s>[src]

pub fn new() -> Self[src]

Create new with no sources.

pub fn with<S>(self, source: S) -> Self where
    S: Source + 's, 
[src]

Add a source to the layer.

Note

The earlier a source is added the higher it is on the source list.

pub fn init<I>(&self) -> Option<I> where
    I: Initialize
[src]

A shorthand for <* as Initialize>::init(config).

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

Retrieves the specified value returning the first one found.

Trait Implementations

impl<'s> Debug for Anulap<'s>[src]

impl<'s> Default for Anulap<'s>[src]

Auto Trait Implementations

impl<'s> !RefUnwindSafe for Anulap<'s>

impl<'s> !Send for Anulap<'s>

impl<'s> !Sync for Anulap<'s>

impl<'s> Unpin for Anulap<'s>

impl<'s> !UnwindSafe for Anulap<'s>

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> 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<V, T> VZip<V> for T where
    V: MultiLane<T>,