[−][src]Struct justconfig::item::Value
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
Item
s.
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]
T: Unpin,
impl<T> !UnwindSafe for Value<T>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,