docs: Add link to usage example to State docs (#5165)

This commit is contained in:
Fabian-Lars
2022-09-08 20:27:31 +02:00
committed by GitHub
parent 3fdd287704
commit b779e52ba7

View File

@@ -9,6 +9,8 @@ use crate::{
use state::Container;
/// A guard for a state value.
///
/// See [`Manager::manage`](`crate::Manager::manage`) for usage examples.
pub struct State<'r, T: Send + Sync + 'static>(&'r T);
impl<'r, T: Send + Sync + 'static> State<'r, T> {