pub struct StaticProvider { /* private fields */ }Expand description
A static context provider that always returns the same value.
This is used internally for .context(name, value) calls where
the value doesn’t depend on render context.
Implementations§
Trait Implementations§
Source§impl Clone for StaticProvider
impl Clone for StaticProvider
Source§fn clone(&self) -> StaticProvider
fn clone(&self) -> StaticProvider
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ContextProvider for StaticProvider
impl ContextProvider for StaticProvider
Auto Trait Implementations§
impl Freeze for StaticProvider
impl !RefUnwindSafe for StaticProvider
impl Send for StaticProvider
impl Sync for StaticProvider
impl Unpin for StaticProvider
impl !UnwindSafe for StaticProvider
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