[−][src]Function seed_hooks::update_state_with_topo_id
pub fn update_state_with_topo_id<T, F>(id: Id, func: F) where
F: FnOnce(&mut T),
T: 'static,
Provides mutable access to the stored state type T.
Example:
update_state_with_topo_id::<Vec<String>>( topo::Id::current(), |v| v.push("foo".to_string() )