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
/// A marker for generic types that specifies a variant of something being not specified.
///
/// This struct is mostly used with typed builder pattern.
///
/// # Examples
///
/// ```rust
/// use mavio::protocol::Unset;
///
/// trait MaybeSomething {}
///
/// struct Something {
/// /* fields */
/// }
///
/// impl MaybeSomething for Something {}
///
/// impl MaybeSomething for Unset {}
///
/// struct Container<T: MaybeSomething> (T);
///
/// impl Container<Unset> {
/// fn new() -> Self {
/// Self(Unset)
/// }
///
/// fn add_something(something: Something) -> Container<Something> {
/// Container(something)
/// }
/// }
///
/// impl Container<Something> {
/// fn do_something(&self) {
/// /* logic specific to something */
/// }
/// }
/// ```
;