wplot/abs/context.rs
1/// Internal namespace.
2pub( crate ) mod private
3{
4  use crate::protected::*;
5  // use crate::abs::*;
6  // use once_cell::sync::Lazy;
7  // use std::sync::Mutex;
8  // use dashmap::DashMap;
9  // use std::sync::Arc;
10
11  /// Registry of contexts.
12  pub trait ContextInterface
13  where
14    Self :
15      HasIdInterface +
16      Make0 +
17      fmt::Debug +
18    ,
19  {
20    /// Type of changer of the context.
21    type Changer : ChangerInterface;
22    /// Get changer of the context.
23    fn changer( &mut self ) -> Self::Changer;
24  }
25
26}
27
28crate::mod_interface!
29{
30
31  prelude use ContextInterface;
32
33}