1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
pub trait Configure<This> {
    
    type Properties;
    
    fn configure<F>(&mut self, this: This, function: F) -> &mut Self
    where
        F: FnOnce(&mut Self::Properties) -> &mut Self::Properties;
}
pub trait Data {
    
    fn f64(self) -> f64;
}
pub trait Plot<This> {
    
    type Properties;
    
    fn plot<F>(&mut self, this: This, function: F) -> &mut Self
    where
        F: FnOnce(&mut Self::Properties) -> &mut Self::Properties;
}
pub trait Set<T> {
    
    fn set(&mut self, value: T) -> &mut Self;
}