Skip to main content

environment

Function environment 

Source
pub fn environment<T>() -> Option<T>
where T: Clone + 'static,
Expand description

Read the nearest ambient T provided by an enclosing with_environment, or None if none is in scope. Call it while constructing or building a piece within that subtree.

Day API ↩ Guides· daybrite.dev