#[non_exhaustive]pub struct Setting<T> {
pub value: T,
pub source: Source,
}Expand description
A value and where it came from.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.value: TThe resolved value.
source: SourceThe layer it came from.
Trait Implementations§
impl<T: Eq> Eq for Setting<T>
impl<T: PartialEq> StructuralPartialEq for Setting<T>
Auto Trait Implementations§
impl<T> Forget for Setting<T>
impl<T> Freeze for Setting<T>where
T: Freeze,
impl<T> Move for Setting<T>
impl<T> RefUnwindSafe for Setting<T>where
T: RefUnwindSafe,
impl<T> Send for Setting<T>where
T: Send,
impl<T> Sync for Setting<T>where
T: Sync,
impl<T> Unpin for Setting<T>where
T: Unpin,
impl<T> UnsafeUnpin for Setting<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Setting<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more