diff --git a/core/src/concepts/query.rs b/core/src/concepts/query.rs index 008002c8f..4f5477c32 100644 --- a/core/src/concepts/query.rs +++ b/core/src/concepts/query.rs @@ -86,10 +86,12 @@ impl QueryRef { result.map(QueryResult).map_err(Self::clone_err) } - /// Gets the reference to the font load result. + /// Gets the reference to the (maybe uninitialized) result. /// /// Returns `None` if the cell is empty, or being initialized. This /// method never blocks. + /// + /// It is possible not hot, so that it is non-inlined pub fn get_uninitialized(&self) -> QueryResult<'_, Option>> { let borrowed = self.cell.borrow_mut(); let result = RefMut::map(borrowed, |(_, ref mut res)| res);