[][src]Struct justconfig::item::Value

pub struct Value<T> { /* fields omitted */ }

Structure representing a configuration value.

Any configuration item can have multiple configuration values.

Every configuration value is linked to its source. Every configuration source implements a struct that implements the SourceLocation trait. The source location is used to supply information to the user where the configuration value is coming from.

See Item for more Information.

Implementations

impl<T> Value<T>[src]

pub fn new(value: T, source: Rc<dyn SourceLocation>) -> Rc<Self>[src]

Create a new configuration value.

Configuration values are normally created to be included into configuration Items.

pub fn source(&self) -> Rc<dyn SourceLocation>[src]

Returns the source of this configuration value.

Auto Trait Implementations

impl<T> !RefUnwindSafe for Value<T>[src]

impl<T> !Send for Value<T>[src]

impl<T> !Sync for Value<T>[src]

impl<T> Unpin for Value<T> where
    T: Unpin
[src]

impl<T> !UnwindSafe for Value<T>[src]

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.