pub struct ValueSource(/* private fields */);Expand description
A source backed by values a consumer already has in hand — for example a provider’s own constructor arguments, used as a last-resort fallback tier.
Implementations§
Trait Implementations§
Source§impl Clone for ValueSource
impl Clone for ValueSource
Source§fn clone(&self) -> ValueSource
fn clone(&self) -> ValueSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ConfigSource for ValueSource
impl ConfigSource for ValueSource
Source§impl Debug for ValueSource
impl Debug for ValueSource
Source§impl Default for ValueSource
impl Default for ValueSource
Source§fn default() -> ValueSource
fn default() -> ValueSource
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ValueSource
impl RefUnwindSafe for ValueSource
impl Send for ValueSource
impl Sync for ValueSource
impl Unpin for ValueSource
impl UnsafeUnpin for ValueSource
impl UnwindSafe for ValueSource
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