pub fn environment<T: Clone + 'static>() -> Option<T>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.
pub fn environment<T: Clone + 'static>() -> Option<T>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.