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
36
37
38
39
40
41
42
43
44
45
46
47
48
use Pixel;
/// Trait which defines the minimum requirements for an image implementation.
///
/// It is important to note, that usually you want to use [`ImageVal`](struct.ImageVal.html)
/// instead of directly use this trait. Use this trait directly if you want to describe a type
/// bound. This is for example necessary if you want to define a type with a parameter,
/// which has to be an `Image`. To store actual values use [`ImageVal`](struct.ImageVal.html).
///
/// # Examples
/// ```
/// use img::{Image, ImageVal};
/// struct Foo<T: Image> {
/// data: ImageVal<T>,
/// };
/// ```