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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/*!
Integration between `sval` and `std::fmt`.
Add the `fmt` feature to your `Cargo.toml` to enable this module:
```toml,no_run
[dependencies.sval]
features = ["fmt"]
```
# From `sval` to `std::fmt`
A type that implements [`Value`](../value/trait.Value.html) can be converted into
a type that implements [`std::fmt::Debug`]:
```
# use sval::value::{self, Value};
# struct MyValue;
# impl Value for MyValue {
# fn stream(&self, stream: &mut value::Stream) -> value::Result {
# unimplemented!()
# }
# }
# let my_value = MyValue;
let my_debug = sval::fmt::to_debug(my_value);
```
*/
use crate::;
pub use ToDebug;
/**
Convert a [`Value`] into a [`Debug`].
The formatted value is not guaranteed to be exactly the same as
a `Debug` implementation that might exist on the type.
This method doesn't need to allocate or perform any buffering.
*/
/**
Format a [`Value`] using the given [`Formatter`].
*/