/rust/registry/src/index.crates.io-1949cf8c6b5b557f/value-bag-1.12.0/src/internal/mod.rs
Line | Count | Source |
1 | | //! The internal `Value` serialization API. |
2 | | //! |
3 | | //! This implementation isn't intended to be public. It may need to change |
4 | | //! for optimizations or to support new external serialization frameworks. |
5 | | |
6 | | use crate::{fill::Fill, Error, ValueBag}; |
7 | | |
8 | | pub(crate) mod cast; |
9 | | #[cfg(feature = "error")] |
10 | | pub(crate) mod error; |
11 | | pub(crate) mod fmt; |
12 | | #[cfg(feature = "seq")] |
13 | | pub(crate) mod seq; |
14 | | #[cfg(feature = "serde1")] |
15 | | pub(crate) mod serde; |
16 | | #[cfg(feature = "sval2")] |
17 | | pub(crate) mod sval; |
18 | | |
19 | | #[cfg(feature = "owned")] |
20 | | pub(crate) mod owned; |
21 | | |
22 | | #[cfg(feature = "owned")] |
23 | | use crate::std::sync::Arc; |
24 | | |
25 | | // NOTE: It takes less space to have separate variants for the presence |
26 | | // of a `TypeId` instead of using `Option<T>`, because `TypeId` doesn't |
27 | | // have a niche value |
28 | | /// A container for a structured value for a specific kind of visitor. |
29 | | #[derive(Clone)] |
30 | | pub(crate) enum Internal<'v> { |
31 | | // Primitive values |
32 | | Signed(i64), |
33 | | Unsigned(u64), |
34 | | #[cfg(not(feature = "inline-i128"))] |
35 | | BigSigned(&'v i128), |
36 | | #[cfg(feature = "inline-i128")] |
37 | | BigSigned(i128), |
38 | | #[cfg(not(feature = "inline-i128"))] |
39 | | BigUnsigned(&'v u128), |
40 | | #[cfg(feature = "inline-i128")] |
41 | | BigUnsigned(u128), |
42 | | Float(f64), |
43 | | Bool(bool), |
44 | | Char(char), |
45 | | Str(&'v str), |
46 | | None, |
47 | | |
48 | | // Captured values |
49 | | Fill(&'v dyn Fill), |
50 | | Debug(&'v dyn fmt::DowncastDebug), |
51 | | Display(&'v dyn fmt::DowncastDisplay), |
52 | | #[cfg(feature = "error")] |
53 | | Error(&'v dyn error::DowncastError), |
54 | | #[cfg(feature = "sval2")] |
55 | | Sval2(&'v dyn sval::v2::DowncastValue), |
56 | | #[cfg(feature = "serde1")] |
57 | | Serde1(&'v dyn serde::v1::DowncastSerialize), |
58 | | |
59 | | // Anonymous values |
60 | | AnonDebug(&'v dyn fmt::Debug), |
61 | | AnonDisplay(&'v dyn fmt::Display), |
62 | | #[cfg(feature = "error")] |
63 | | AnonError(&'v (dyn error::Error + 'static)), |
64 | | #[cfg(feature = "sval2")] |
65 | | AnonSval2(&'v dyn sval::v2::Value), |
66 | | #[cfg(feature = "serde1")] |
67 | | AnonSerde1(&'v dyn serde::v1::Serialize), |
68 | | #[cfg(feature = "seq")] |
69 | | AnonSeq(&'v dyn seq::Seq), |
70 | | |
71 | | // Shared values |
72 | | #[cfg(feature = "owned")] |
73 | | SharedDebug(Arc<dyn fmt::DowncastDebug + Send + Sync>), |
74 | | #[cfg(feature = "owned")] |
75 | | SharedDisplay(Arc<dyn fmt::DowncastDisplay + Send + Sync>), |
76 | | #[cfg(all(feature = "error", feature = "owned"))] |
77 | | SharedError(Arc<dyn error::DowncastError + Send + Sync>), |
78 | | #[cfg(all(feature = "serde1", feature = "owned"))] |
79 | | SharedSerde1(Arc<dyn serde::v1::DowncastSerialize + Send + Sync>), |
80 | | #[cfg(all(feature = "sval2", feature = "owned"))] |
81 | | SharedSval2(Arc<dyn sval::v2::DowncastValue + Send + Sync>), |
82 | | #[cfg(all(feature = "seq", feature = "owned"))] |
83 | | SharedSeq(Arc<dyn seq::DowncastSeq + Send + Sync>), |
84 | | |
85 | | // NOTE: These variants exist because we can't clone an `Arc` in `const` fns |
86 | | // (plus we may not want to anyways) |
87 | | #[cfg(feature = "owned")] |
88 | | SharedRefDebug(&'v Arc<dyn fmt::DowncastDebug + Send + Sync>), |
89 | | #[cfg(feature = "owned")] |
90 | | SharedRefDisplay(&'v Arc<dyn fmt::DowncastDisplay + Send + Sync>), |
91 | | #[cfg(all(feature = "error", feature = "owned"))] |
92 | | SharedRefError(&'v Arc<dyn error::DowncastError + Send + Sync>), |
93 | | #[cfg(all(feature = "serde1", feature = "owned"))] |
94 | | SharedRefSerde1(&'v Arc<dyn serde::v1::DowncastSerialize + Send + Sync>), |
95 | | #[cfg(all(feature = "sval2", feature = "owned"))] |
96 | | SharedRefSval2(&'v Arc<dyn sval::v2::DowncastValue + Send + Sync>), |
97 | | #[cfg(all(feature = "seq", feature = "owned"))] |
98 | | SharedRefSeq(&'v Arc<dyn seq::DowncastSeq + Send + Sync>), |
99 | | |
100 | | // Poisoned value |
101 | | #[cfg_attr(not(feature = "owned"), allow(dead_code))] |
102 | | Poisoned(&'static str), |
103 | | } |
104 | | |
105 | | /// The internal serialization contract. |
106 | | pub(crate) trait InternalVisitor<'v> { |
107 | | fn fill(&mut self, v: &dyn Fill) -> Result<(), Error>; |
108 | | |
109 | | fn debug(&mut self, v: &dyn fmt::Debug) -> Result<(), Error>; |
110 | 0 | fn borrowed_debug(&mut self, v: &'v dyn fmt::Debug) -> Result<(), Error> { |
111 | 0 | self.debug(v) |
112 | 0 | } Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<dyn sval_dynamic::stream::Stream> as value_bag::internal::InternalVisitor>::borrowed_debug Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::tag::Extract> as value_bag::internal::InternalVisitor>::borrowed_debug Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_f32::Extract> as value_bag::internal::InternalVisitor>::borrowed_debug Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_f64::Extract> as value_bag::internal::InternalVisitor>::borrowed_debug Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_bool::Extract> as value_bag::internal::InternalVisitor>::borrowed_debug Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_i128::Extract> as value_bag::internal::InternalVisitor>::borrowed_debug Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_text::Extract> as value_bag::internal::InternalVisitor>::borrowed_debug Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_u128::Extract> as value_bag::internal::InternalVisitor>::borrowed_debug Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_binary::Extract> as value_bag::internal::InternalVisitor>::borrowed_debug Unexecuted instantiation: <<value_bag::internal::Internal>::to_owned::OwnedVisitor as value_bag::internal::InternalVisitor>::borrowed_debug Unexecuted instantiation: <<value_bag::ValueBag as core::fmt::Debug>::fmt::DebugVisitor as value_bag::internal::InternalVisitor>::borrowed_debug Unexecuted instantiation: <<value_bag::ValueBag as core::fmt::Display>::fmt::DisplayVisitor as value_bag::internal::InternalVisitor>::borrowed_debug Unexecuted instantiation: <<value_bag::internal::Internal>::cast::CastVisitor as value_bag::internal::InternalVisitor>::borrowed_debug |
113 | | #[cfg(feature = "owned")] |
114 | 0 | fn shared_debug(&mut self, v: &Arc<dyn fmt::DowncastDebug + Send + Sync>) -> Result<(), Error> { |
115 | 0 | self.debug(v) |
116 | 0 | } Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<dyn sval_dynamic::stream::Stream> as value_bag::internal::InternalVisitor>::shared_debug Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::tag::Extract> as value_bag::internal::InternalVisitor>::shared_debug Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_f32::Extract> as value_bag::internal::InternalVisitor>::shared_debug Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_f64::Extract> as value_bag::internal::InternalVisitor>::shared_debug Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_bool::Extract> as value_bag::internal::InternalVisitor>::shared_debug Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_i128::Extract> as value_bag::internal::InternalVisitor>::shared_debug Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_text::Extract> as value_bag::internal::InternalVisitor>::shared_debug Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_u128::Extract> as value_bag::internal::InternalVisitor>::shared_debug Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_binary::Extract> as value_bag::internal::InternalVisitor>::shared_debug Unexecuted instantiation: <<value_bag::ValueBag as core::fmt::Debug>::fmt::DebugVisitor as value_bag::internal::InternalVisitor>::shared_debug Unexecuted instantiation: <<value_bag::ValueBag as core::fmt::Display>::fmt::DisplayVisitor as value_bag::internal::InternalVisitor>::shared_debug Unexecuted instantiation: <<value_bag::internal::Internal>::cast::CastVisitor as value_bag::internal::InternalVisitor>::shared_debug |
117 | | fn display(&mut self, v: &dyn fmt::Display) -> Result<(), Error>; |
118 | 0 | fn borrowed_display(&mut self, v: &'v dyn fmt::Display) -> Result<(), Error> { |
119 | 0 | self.display(v) |
120 | 0 | } Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<dyn sval_dynamic::stream::Stream> as value_bag::internal::InternalVisitor>::borrowed_display Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::tag::Extract> as value_bag::internal::InternalVisitor>::borrowed_display Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_f32::Extract> as value_bag::internal::InternalVisitor>::borrowed_display Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_f64::Extract> as value_bag::internal::InternalVisitor>::borrowed_display Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_bool::Extract> as value_bag::internal::InternalVisitor>::borrowed_display Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_i128::Extract> as value_bag::internal::InternalVisitor>::borrowed_display Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_text::Extract> as value_bag::internal::InternalVisitor>::borrowed_display Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_u128::Extract> as value_bag::internal::InternalVisitor>::borrowed_display Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_binary::Extract> as value_bag::internal::InternalVisitor>::borrowed_display Unexecuted instantiation: <<value_bag::internal::Internal>::to_owned::OwnedVisitor as value_bag::internal::InternalVisitor>::borrowed_display Unexecuted instantiation: <<value_bag::ValueBag as core::fmt::Debug>::fmt::DebugVisitor as value_bag::internal::InternalVisitor>::borrowed_display Unexecuted instantiation: <<value_bag::ValueBag as core::fmt::Display>::fmt::DisplayVisitor as value_bag::internal::InternalVisitor>::borrowed_display Unexecuted instantiation: <<value_bag::internal::Internal>::cast::CastVisitor as value_bag::internal::InternalVisitor>::borrowed_display |
121 | | #[cfg(feature = "owned")] |
122 | 0 | fn shared_display( |
123 | 0 | &mut self, |
124 | 0 | v: &Arc<dyn fmt::DowncastDisplay + Send + Sync>, |
125 | 0 | ) -> Result<(), Error> { |
126 | 0 | self.display(v) |
127 | 0 | } Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<dyn sval_dynamic::stream::Stream> as value_bag::internal::InternalVisitor>::shared_display Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::tag::Extract> as value_bag::internal::InternalVisitor>::shared_display Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_f32::Extract> as value_bag::internal::InternalVisitor>::shared_display Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_f64::Extract> as value_bag::internal::InternalVisitor>::shared_display Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_bool::Extract> as value_bag::internal::InternalVisitor>::shared_display Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_i128::Extract> as value_bag::internal::InternalVisitor>::shared_display Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_text::Extract> as value_bag::internal::InternalVisitor>::shared_display Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_u128::Extract> as value_bag::internal::InternalVisitor>::shared_display Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_binary::Extract> as value_bag::internal::InternalVisitor>::shared_display Unexecuted instantiation: <<value_bag::ValueBag as core::fmt::Debug>::fmt::DebugVisitor as value_bag::internal::InternalVisitor>::shared_display Unexecuted instantiation: <<value_bag::ValueBag as core::fmt::Display>::fmt::DisplayVisitor as value_bag::internal::InternalVisitor>::shared_display Unexecuted instantiation: <<value_bag::internal::Internal>::cast::CastVisitor as value_bag::internal::InternalVisitor>::shared_display |
128 | | |
129 | | fn u64(&mut self, v: u64) -> Result<(), Error>; |
130 | | fn i64(&mut self, v: i64) -> Result<(), Error>; |
131 | | fn u128(&mut self, v: &u128) -> Result<(), Error>; |
132 | | #[cfg(not(feature = "inline-i128"))] |
133 | | fn borrowed_u128(&mut self, v: &'v u128) -> Result<(), Error> { |
134 | | self.u128(v) |
135 | | } |
136 | | fn i128(&mut self, v: &i128) -> Result<(), Error>; |
137 | | #[cfg(not(feature = "inline-i128"))] |
138 | | fn borrowed_i128(&mut self, v: &'v i128) -> Result<(), Error> { |
139 | | self.i128(v) |
140 | | } |
141 | | fn f64(&mut self, v: f64) -> Result<(), Error>; |
142 | | fn bool(&mut self, v: bool) -> Result<(), Error>; |
143 | | fn char(&mut self, v: char) -> Result<(), Error>; |
144 | | |
145 | | fn str(&mut self, v: &str) -> Result<(), Error>; |
146 | 0 | fn borrowed_str(&mut self, v: &'v str) -> Result<(), Error> { |
147 | 0 | self.str(v) |
148 | 0 | } Unexecuted instantiation: <<value_bag::internal::Internal>::to_owned::OwnedVisitor as value_bag::internal::InternalVisitor>::borrowed_str Unexecuted instantiation: <<value_bag::ValueBag as core::fmt::Debug>::fmt::DebugVisitor as value_bag::internal::InternalVisitor>::borrowed_str Unexecuted instantiation: <<value_bag::ValueBag as core::fmt::Display>::fmt::DisplayVisitor as value_bag::internal::InternalVisitor>::borrowed_str |
149 | | |
150 | | fn none(&mut self) -> Result<(), Error>; |
151 | | |
152 | | #[cfg(feature = "error")] |
153 | | fn error(&mut self, v: &(dyn error::Error + 'static)) -> Result<(), Error>; |
154 | | #[cfg(feature = "error")] |
155 | 0 | fn borrowed_error(&mut self, v: &'v (dyn error::Error + 'static)) -> Result<(), Error> { |
156 | 0 | self.error(v) |
157 | 0 | } Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<dyn sval_dynamic::stream::Stream> as value_bag::internal::InternalVisitor>::borrowed_error Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::tag::Extract> as value_bag::internal::InternalVisitor>::borrowed_error Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_f32::Extract> as value_bag::internal::InternalVisitor>::borrowed_error Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_f64::Extract> as value_bag::internal::InternalVisitor>::borrowed_error Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_bool::Extract> as value_bag::internal::InternalVisitor>::borrowed_error Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_i128::Extract> as value_bag::internal::InternalVisitor>::borrowed_error Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_text::Extract> as value_bag::internal::InternalVisitor>::borrowed_error Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_u128::Extract> as value_bag::internal::InternalVisitor>::borrowed_error Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_binary::Extract> as value_bag::internal::InternalVisitor>::borrowed_error Unexecuted instantiation: <<value_bag::internal::Internal>::to_owned::OwnedVisitor as value_bag::internal::InternalVisitor>::borrowed_error Unexecuted instantiation: <<value_bag::ValueBag as core::fmt::Debug>::fmt::DebugVisitor as value_bag::internal::InternalVisitor>::borrowed_error Unexecuted instantiation: <<value_bag::ValueBag as core::fmt::Display>::fmt::DisplayVisitor as value_bag::internal::InternalVisitor>::borrowed_error Unexecuted instantiation: <<value_bag::internal::Internal>::cast::CastVisitor as value_bag::internal::InternalVisitor>::borrowed_error |
158 | | #[cfg(all(feature = "error", feature = "owned"))] |
159 | 0 | fn shared_error( |
160 | 0 | &mut self, |
161 | 0 | v: &Arc<dyn error::DowncastError + Send + Sync>, |
162 | 0 | ) -> Result<(), Error> { |
163 | 0 | self.error(v.as_super()) |
164 | 0 | } Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<dyn sval_dynamic::stream::Stream> as value_bag::internal::InternalVisitor>::shared_error Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::tag::Extract> as value_bag::internal::InternalVisitor>::shared_error Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_f32::Extract> as value_bag::internal::InternalVisitor>::shared_error Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_f64::Extract> as value_bag::internal::InternalVisitor>::shared_error Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_bool::Extract> as value_bag::internal::InternalVisitor>::shared_error Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_i128::Extract> as value_bag::internal::InternalVisitor>::shared_error Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_text::Extract> as value_bag::internal::InternalVisitor>::shared_error Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_u128::Extract> as value_bag::internal::InternalVisitor>::shared_error Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_binary::Extract> as value_bag::internal::InternalVisitor>::shared_error Unexecuted instantiation: <<value_bag::ValueBag as core::fmt::Debug>::fmt::DebugVisitor as value_bag::internal::InternalVisitor>::shared_error Unexecuted instantiation: <<value_bag::ValueBag as core::fmt::Display>::fmt::DisplayVisitor as value_bag::internal::InternalVisitor>::shared_error Unexecuted instantiation: <<value_bag::internal::Internal>::cast::CastVisitor as value_bag::internal::InternalVisitor>::shared_error |
165 | | |
166 | | #[cfg(feature = "sval2")] |
167 | | fn sval2(&mut self, v: &dyn sval::v2::Value) -> Result<(), Error>; |
168 | | #[cfg(feature = "sval2")] |
169 | 0 | fn borrowed_sval2(&mut self, v: &'v dyn sval::v2::Value) -> Result<(), Error> { |
170 | 0 | self.sval2(v) |
171 | 0 | } Unexecuted instantiation: <<value_bag::internal::Internal>::to_owned::OwnedVisitor as value_bag::internal::InternalVisitor>::borrowed_sval2 Unexecuted instantiation: <<value_bag::ValueBag as core::fmt::Debug>::fmt::DebugVisitor as value_bag::internal::InternalVisitor>::borrowed_sval2 Unexecuted instantiation: <<value_bag::ValueBag as core::fmt::Display>::fmt::DisplayVisitor as value_bag::internal::InternalVisitor>::borrowed_sval2 |
172 | | #[cfg(all(feature = "sval2", feature = "owned"))] |
173 | 0 | fn shared_sval2( |
174 | 0 | &mut self, |
175 | 0 | v: &Arc<dyn sval::v2::DowncastValue + Send + Sync>, |
176 | 0 | ) -> Result<(), Error> { |
177 | 0 | self.sval2(v.as_super()) |
178 | 0 | } Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<dyn sval_dynamic::stream::Stream> as value_bag::internal::InternalVisitor>::shared_sval2 Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::tag::Extract> as value_bag::internal::InternalVisitor>::shared_sval2 Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_f32::Extract> as value_bag::internal::InternalVisitor>::shared_sval2 Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_f64::Extract> as value_bag::internal::InternalVisitor>::shared_sval2 Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_bool::Extract> as value_bag::internal::InternalVisitor>::shared_sval2 Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_i128::Extract> as value_bag::internal::InternalVisitor>::shared_sval2 Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_text::Extract> as value_bag::internal::InternalVisitor>::shared_sval2 Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_u128::Extract> as value_bag::internal::InternalVisitor>::shared_sval2 Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_binary::Extract> as value_bag::internal::InternalVisitor>::shared_sval2 Unexecuted instantiation: <<value_bag::ValueBag as core::fmt::Debug>::fmt::DebugVisitor as value_bag::internal::InternalVisitor>::shared_sval2 Unexecuted instantiation: <<value_bag::ValueBag as core::fmt::Display>::fmt::DisplayVisitor as value_bag::internal::InternalVisitor>::shared_sval2 Unexecuted instantiation: <<value_bag::internal::Internal>::cast::CastVisitor as value_bag::internal::InternalVisitor>::shared_sval2 |
179 | | |
180 | | #[cfg(feature = "serde1")] |
181 | | fn serde1(&mut self, v: &dyn serde::v1::Serialize) -> Result<(), Error>; |
182 | | #[cfg(feature = "serde1")] |
183 | 0 | fn borrowed_serde1(&mut self, v: &'v dyn serde::v1::Serialize) -> Result<(), Error> { |
184 | 0 | self.serde1(v) |
185 | 0 | } Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<dyn sval_dynamic::stream::Stream> as value_bag::internal::InternalVisitor>::borrowed_serde1 Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::tag::Extract> as value_bag::internal::InternalVisitor>::borrowed_serde1 Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_f32::Extract> as value_bag::internal::InternalVisitor>::borrowed_serde1 Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_f64::Extract> as value_bag::internal::InternalVisitor>::borrowed_serde1 Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_bool::Extract> as value_bag::internal::InternalVisitor>::borrowed_serde1 Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_i128::Extract> as value_bag::internal::InternalVisitor>::borrowed_serde1 Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_text::Extract> as value_bag::internal::InternalVisitor>::borrowed_serde1 Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_u128::Extract> as value_bag::internal::InternalVisitor>::borrowed_serde1 Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_binary::Extract> as value_bag::internal::InternalVisitor>::borrowed_serde1 Unexecuted instantiation: <<value_bag::internal::Internal>::to_owned::OwnedVisitor as value_bag::internal::InternalVisitor>::borrowed_serde1 Unexecuted instantiation: <<value_bag::ValueBag as core::fmt::Debug>::fmt::DebugVisitor as value_bag::internal::InternalVisitor>::borrowed_serde1 Unexecuted instantiation: <<value_bag::ValueBag as core::fmt::Display>::fmt::DisplayVisitor as value_bag::internal::InternalVisitor>::borrowed_serde1 Unexecuted instantiation: <<value_bag::internal::Internal>::cast::CastVisitor as value_bag::internal::InternalVisitor>::borrowed_serde1 |
186 | | #[cfg(all(feature = "serde1", feature = "owned"))] |
187 | 0 | fn shared_serde1( |
188 | 0 | &mut self, |
189 | 0 | v: &Arc<dyn serde::v1::DowncastSerialize + Send + Sync>, |
190 | 0 | ) -> Result<(), Error> { |
191 | 0 | self.serde1(v.as_super()) |
192 | 0 | } Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<dyn sval_dynamic::stream::Stream> as value_bag::internal::InternalVisitor>::shared_serde1 Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::tag::Extract> as value_bag::internal::InternalVisitor>::shared_serde1 Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_f32::Extract> as value_bag::internal::InternalVisitor>::shared_serde1 Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_f64::Extract> as value_bag::internal::InternalVisitor>::shared_serde1 Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_bool::Extract> as value_bag::internal::InternalVisitor>::shared_serde1 Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_i128::Extract> as value_bag::internal::InternalVisitor>::shared_serde1 Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_text::Extract> as value_bag::internal::InternalVisitor>::shared_serde1 Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_u128::Extract> as value_bag::internal::InternalVisitor>::shared_serde1 Unexecuted instantiation: <<value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_binary::Extract> as value_bag::internal::InternalVisitor>::shared_serde1 Unexecuted instantiation: <<value_bag::ValueBag as core::fmt::Debug>::fmt::DebugVisitor as value_bag::internal::InternalVisitor>::shared_serde1 Unexecuted instantiation: <<value_bag::ValueBag as core::fmt::Display>::fmt::DisplayVisitor as value_bag::internal::InternalVisitor>::shared_serde1 Unexecuted instantiation: <<value_bag::internal::Internal>::cast::CastVisitor as value_bag::internal::InternalVisitor>::shared_serde1 |
193 | | |
194 | | #[cfg(feature = "seq")] |
195 | | fn seq(&mut self, v: &dyn seq::Seq) -> Result<(), Error>; |
196 | | |
197 | | #[cfg(feature = "seq")] |
198 | | fn borrowed_seq(&mut self, v: &'v dyn seq::Seq) -> Result<(), Error> { |
199 | | self.seq(v) |
200 | | } |
201 | | |
202 | | #[cfg(all(feature = "seq", feature = "owned"))] |
203 | | fn shared_seq(&mut self, v: &Arc<dyn seq::DowncastSeq + Send + Sync>) -> Result<(), Error> { |
204 | | self.seq(v.as_super()) |
205 | | } |
206 | | |
207 | | fn poisoned(&mut self, msg: &'static str) -> Result<(), Error>; |
208 | | } |
209 | | |
210 | | impl<'a, 'v, V: InternalVisitor<'v> + ?Sized> InternalVisitor<'v> for &'a mut V { |
211 | 0 | fn fill(&mut self, v: &dyn Fill) -> Result<(), Error> { |
212 | 0 | (**self).fill(v) |
213 | 0 | } Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<dyn sval_dynamic::stream::Stream> as value_bag::internal::InternalVisitor>::fill Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::tag::Extract> as value_bag::internal::InternalVisitor>::fill Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_f32::Extract> as value_bag::internal::InternalVisitor>::fill Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_f64::Extract> as value_bag::internal::InternalVisitor>::fill Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_bool::Extract> as value_bag::internal::InternalVisitor>::fill Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_i128::Extract> as value_bag::internal::InternalVisitor>::fill Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_text::Extract> as value_bag::internal::InternalVisitor>::fill Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_u128::Extract> as value_bag::internal::InternalVisitor>::fill Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_binary::Extract> as value_bag::internal::InternalVisitor>::fill Unexecuted instantiation: <&mut <value_bag::internal::Internal>::to_owned::OwnedVisitor as value_bag::internal::InternalVisitor>::fill Unexecuted instantiation: <&mut <value_bag::ValueBag as core::fmt::Debug>::fmt::DebugVisitor as value_bag::internal::InternalVisitor>::fill Unexecuted instantiation: <&mut <value_bag::ValueBag as core::fmt::Display>::fmt::DisplayVisitor as value_bag::internal::InternalVisitor>::fill Unexecuted instantiation: <&mut <value_bag::internal::Internal>::cast::CastVisitor as value_bag::internal::InternalVisitor>::fill |
214 | | |
215 | 0 | fn debug(&mut self, v: &dyn fmt::Debug) -> Result<(), Error> { |
216 | 0 | (**self).debug(v) |
217 | 0 | } |
218 | | |
219 | 0 | fn borrowed_debug(&mut self, v: &'v dyn fmt::Debug) -> Result<(), Error> { |
220 | 0 | (**self).borrowed_debug(v) |
221 | 0 | } Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<dyn sval_dynamic::stream::Stream> as value_bag::internal::InternalVisitor>::borrowed_debug Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::tag::Extract> as value_bag::internal::InternalVisitor>::borrowed_debug Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_f32::Extract> as value_bag::internal::InternalVisitor>::borrowed_debug Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_f64::Extract> as value_bag::internal::InternalVisitor>::borrowed_debug Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_bool::Extract> as value_bag::internal::InternalVisitor>::borrowed_debug Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_i128::Extract> as value_bag::internal::InternalVisitor>::borrowed_debug Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_text::Extract> as value_bag::internal::InternalVisitor>::borrowed_debug Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_u128::Extract> as value_bag::internal::InternalVisitor>::borrowed_debug Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_binary::Extract> as value_bag::internal::InternalVisitor>::borrowed_debug Unexecuted instantiation: <&mut <value_bag::internal::Internal>::to_owned::OwnedVisitor as value_bag::internal::InternalVisitor>::borrowed_debug Unexecuted instantiation: <&mut <value_bag::ValueBag as core::fmt::Debug>::fmt::DebugVisitor as value_bag::internal::InternalVisitor>::borrowed_debug Unexecuted instantiation: <&mut <value_bag::ValueBag as core::fmt::Display>::fmt::DisplayVisitor as value_bag::internal::InternalVisitor>::borrowed_debug Unexecuted instantiation: <&mut <value_bag::internal::Internal>::cast::CastVisitor as value_bag::internal::InternalVisitor>::borrowed_debug |
222 | | |
223 | | #[cfg(feature = "owned")] |
224 | 0 | fn shared_debug(&mut self, v: &Arc<dyn fmt::DowncastDebug + Send + Sync>) -> Result<(), Error> { |
225 | 0 | (**self).shared_debug(v) |
226 | 0 | } Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<dyn sval_dynamic::stream::Stream> as value_bag::internal::InternalVisitor>::shared_debug Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::tag::Extract> as value_bag::internal::InternalVisitor>::shared_debug Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_f32::Extract> as value_bag::internal::InternalVisitor>::shared_debug Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_f64::Extract> as value_bag::internal::InternalVisitor>::shared_debug Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_bool::Extract> as value_bag::internal::InternalVisitor>::shared_debug Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_i128::Extract> as value_bag::internal::InternalVisitor>::shared_debug Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_text::Extract> as value_bag::internal::InternalVisitor>::shared_debug Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_u128::Extract> as value_bag::internal::InternalVisitor>::shared_debug Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_binary::Extract> as value_bag::internal::InternalVisitor>::shared_debug Unexecuted instantiation: <&mut <value_bag::internal::Internal>::to_owned::OwnedVisitor as value_bag::internal::InternalVisitor>::shared_debug Unexecuted instantiation: <&mut <value_bag::ValueBag as core::fmt::Debug>::fmt::DebugVisitor as value_bag::internal::InternalVisitor>::shared_debug Unexecuted instantiation: <&mut <value_bag::ValueBag as core::fmt::Display>::fmt::DisplayVisitor as value_bag::internal::InternalVisitor>::shared_debug Unexecuted instantiation: <&mut <value_bag::internal::Internal>::cast::CastVisitor as value_bag::internal::InternalVisitor>::shared_debug |
227 | | |
228 | 0 | fn display(&mut self, v: &dyn fmt::Display) -> Result<(), Error> { |
229 | 0 | (**self).display(v) |
230 | 0 | } |
231 | | |
232 | 0 | fn borrowed_display(&mut self, v: &'v dyn fmt::Display) -> Result<(), Error> { |
233 | 0 | (**self).borrowed_display(v) |
234 | 0 | } Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<dyn sval_dynamic::stream::Stream> as value_bag::internal::InternalVisitor>::borrowed_display Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::tag::Extract> as value_bag::internal::InternalVisitor>::borrowed_display Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_f32::Extract> as value_bag::internal::InternalVisitor>::borrowed_display Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_f64::Extract> as value_bag::internal::InternalVisitor>::borrowed_display Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_bool::Extract> as value_bag::internal::InternalVisitor>::borrowed_display Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_i128::Extract> as value_bag::internal::InternalVisitor>::borrowed_display Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_text::Extract> as value_bag::internal::InternalVisitor>::borrowed_display Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_u128::Extract> as value_bag::internal::InternalVisitor>::borrowed_display Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_binary::Extract> as value_bag::internal::InternalVisitor>::borrowed_display Unexecuted instantiation: <&mut <value_bag::internal::Internal>::to_owned::OwnedVisitor as value_bag::internal::InternalVisitor>::borrowed_display Unexecuted instantiation: <&mut <value_bag::ValueBag as core::fmt::Debug>::fmt::DebugVisitor as value_bag::internal::InternalVisitor>::borrowed_display Unexecuted instantiation: <&mut <value_bag::ValueBag as core::fmt::Display>::fmt::DisplayVisitor as value_bag::internal::InternalVisitor>::borrowed_display Unexecuted instantiation: <&mut <value_bag::internal::Internal>::cast::CastVisitor as value_bag::internal::InternalVisitor>::borrowed_display |
235 | | |
236 | | #[cfg(feature = "owned")] |
237 | 0 | fn shared_display( |
238 | 0 | &mut self, |
239 | 0 | v: &Arc<dyn fmt::DowncastDisplay + Send + Sync>, |
240 | 0 | ) -> Result<(), Error> { |
241 | 0 | (**self).shared_display(v) |
242 | 0 | } Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<dyn sval_dynamic::stream::Stream> as value_bag::internal::InternalVisitor>::shared_display Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::tag::Extract> as value_bag::internal::InternalVisitor>::shared_display Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_f32::Extract> as value_bag::internal::InternalVisitor>::shared_display Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_f64::Extract> as value_bag::internal::InternalVisitor>::shared_display Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_bool::Extract> as value_bag::internal::InternalVisitor>::shared_display Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_i128::Extract> as value_bag::internal::InternalVisitor>::shared_display Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_text::Extract> as value_bag::internal::InternalVisitor>::shared_display Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_u128::Extract> as value_bag::internal::InternalVisitor>::shared_display Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_binary::Extract> as value_bag::internal::InternalVisitor>::shared_display Unexecuted instantiation: <&mut <value_bag::internal::Internal>::to_owned::OwnedVisitor as value_bag::internal::InternalVisitor>::shared_display Unexecuted instantiation: <&mut <value_bag::ValueBag as core::fmt::Debug>::fmt::DebugVisitor as value_bag::internal::InternalVisitor>::shared_display Unexecuted instantiation: <&mut <value_bag::ValueBag as core::fmt::Display>::fmt::DisplayVisitor as value_bag::internal::InternalVisitor>::shared_display Unexecuted instantiation: <&mut <value_bag::internal::Internal>::cast::CastVisitor as value_bag::internal::InternalVisitor>::shared_display |
243 | | |
244 | 0 | fn u64(&mut self, v: u64) -> Result<(), Error> { |
245 | 0 | (**self).u64(v) |
246 | 0 | } Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<dyn sval_dynamic::stream::Stream> as value_bag::internal::InternalVisitor>::u64 Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::tag::Extract> as value_bag::internal::InternalVisitor>::u64 Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_f32::Extract> as value_bag::internal::InternalVisitor>::u64 Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_f64::Extract> as value_bag::internal::InternalVisitor>::u64 Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_bool::Extract> as value_bag::internal::InternalVisitor>::u64 Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_i128::Extract> as value_bag::internal::InternalVisitor>::u64 Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_text::Extract> as value_bag::internal::InternalVisitor>::u64 Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_u128::Extract> as value_bag::internal::InternalVisitor>::u64 Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_binary::Extract> as value_bag::internal::InternalVisitor>::u64 Unexecuted instantiation: <&mut <value_bag::internal::Internal>::to_owned::OwnedVisitor as value_bag::internal::InternalVisitor>::u64 Unexecuted instantiation: <&mut <value_bag::ValueBag as core::fmt::Debug>::fmt::DebugVisitor as value_bag::internal::InternalVisitor>::u64 Unexecuted instantiation: <&mut <value_bag::ValueBag as core::fmt::Display>::fmt::DisplayVisitor as value_bag::internal::InternalVisitor>::u64 Unexecuted instantiation: <&mut <value_bag::internal::Internal>::cast::CastVisitor as value_bag::internal::InternalVisitor>::u64 |
247 | | |
248 | 0 | fn i64(&mut self, v: i64) -> Result<(), Error> { |
249 | 0 | (**self).i64(v) |
250 | 0 | } Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<dyn sval_dynamic::stream::Stream> as value_bag::internal::InternalVisitor>::i64 Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::tag::Extract> as value_bag::internal::InternalVisitor>::i64 Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_f32::Extract> as value_bag::internal::InternalVisitor>::i64 Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_f64::Extract> as value_bag::internal::InternalVisitor>::i64 Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_bool::Extract> as value_bag::internal::InternalVisitor>::i64 Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_i128::Extract> as value_bag::internal::InternalVisitor>::i64 Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_text::Extract> as value_bag::internal::InternalVisitor>::i64 Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_u128::Extract> as value_bag::internal::InternalVisitor>::i64 Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_binary::Extract> as value_bag::internal::InternalVisitor>::i64 Unexecuted instantiation: <&mut <value_bag::internal::Internal>::to_owned::OwnedVisitor as value_bag::internal::InternalVisitor>::i64 Unexecuted instantiation: <&mut <value_bag::ValueBag as core::fmt::Debug>::fmt::DebugVisitor as value_bag::internal::InternalVisitor>::i64 Unexecuted instantiation: <&mut <value_bag::ValueBag as core::fmt::Display>::fmt::DisplayVisitor as value_bag::internal::InternalVisitor>::i64 Unexecuted instantiation: <&mut <value_bag::internal::Internal>::cast::CastVisitor as value_bag::internal::InternalVisitor>::i64 |
251 | | |
252 | 0 | fn u128(&mut self, v: &u128) -> Result<(), Error> { |
253 | 0 | (**self).u128(v) |
254 | 0 | } Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<dyn sval_dynamic::stream::Stream> as value_bag::internal::InternalVisitor>::u128 Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::tag::Extract> as value_bag::internal::InternalVisitor>::u128 Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_f32::Extract> as value_bag::internal::InternalVisitor>::u128 Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_f64::Extract> as value_bag::internal::InternalVisitor>::u128 Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_bool::Extract> as value_bag::internal::InternalVisitor>::u128 Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_i128::Extract> as value_bag::internal::InternalVisitor>::u128 Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_text::Extract> as value_bag::internal::InternalVisitor>::u128 Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_u128::Extract> as value_bag::internal::InternalVisitor>::u128 Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_binary::Extract> as value_bag::internal::InternalVisitor>::u128 Unexecuted instantiation: <&mut <value_bag::internal::Internal>::to_owned::OwnedVisitor as value_bag::internal::InternalVisitor>::u128 Unexecuted instantiation: <&mut <value_bag::ValueBag as core::fmt::Debug>::fmt::DebugVisitor as value_bag::internal::InternalVisitor>::u128 Unexecuted instantiation: <&mut <value_bag::ValueBag as core::fmt::Display>::fmt::DisplayVisitor as value_bag::internal::InternalVisitor>::u128 Unexecuted instantiation: <&mut <value_bag::internal::Internal>::cast::CastVisitor as value_bag::internal::InternalVisitor>::u128 |
255 | | |
256 | | #[cfg(not(feature = "inline-i128"))] |
257 | | fn borrowed_u128(&mut self, v: &'v u128) -> Result<(), Error> { |
258 | | (**self).borrowed_u128(v) |
259 | | } |
260 | | |
261 | 0 | fn i128(&mut self, v: &i128) -> Result<(), Error> { |
262 | 0 | (**self).i128(v) |
263 | 0 | } Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<dyn sval_dynamic::stream::Stream> as value_bag::internal::InternalVisitor>::i128 Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::tag::Extract> as value_bag::internal::InternalVisitor>::i128 Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_f32::Extract> as value_bag::internal::InternalVisitor>::i128 Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_f64::Extract> as value_bag::internal::InternalVisitor>::i128 Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_bool::Extract> as value_bag::internal::InternalVisitor>::i128 Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_i128::Extract> as value_bag::internal::InternalVisitor>::i128 Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_text::Extract> as value_bag::internal::InternalVisitor>::i128 Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_u128::Extract> as value_bag::internal::InternalVisitor>::i128 Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_binary::Extract> as value_bag::internal::InternalVisitor>::i128 Unexecuted instantiation: <&mut <value_bag::internal::Internal>::to_owned::OwnedVisitor as value_bag::internal::InternalVisitor>::i128 Unexecuted instantiation: <&mut <value_bag::ValueBag as core::fmt::Debug>::fmt::DebugVisitor as value_bag::internal::InternalVisitor>::i128 Unexecuted instantiation: <&mut <value_bag::ValueBag as core::fmt::Display>::fmt::DisplayVisitor as value_bag::internal::InternalVisitor>::i128 Unexecuted instantiation: <&mut <value_bag::internal::Internal>::cast::CastVisitor as value_bag::internal::InternalVisitor>::i128 |
264 | | |
265 | | #[cfg(not(feature = "inline-i128"))] |
266 | | fn borrowed_i128(&mut self, v: &'v i128) -> Result<(), Error> { |
267 | | (**self).borrowed_i128(v) |
268 | | } |
269 | | |
270 | 0 | fn f64(&mut self, v: f64) -> Result<(), Error> { |
271 | 0 | (**self).f64(v) |
272 | 0 | } Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<dyn sval_dynamic::stream::Stream> as value_bag::internal::InternalVisitor>::f64 Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::tag::Extract> as value_bag::internal::InternalVisitor>::f64 Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_f32::Extract> as value_bag::internal::InternalVisitor>::f64 Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_f64::Extract> as value_bag::internal::InternalVisitor>::f64 Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_bool::Extract> as value_bag::internal::InternalVisitor>::f64 Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_i128::Extract> as value_bag::internal::InternalVisitor>::f64 Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_text::Extract> as value_bag::internal::InternalVisitor>::f64 Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_u128::Extract> as value_bag::internal::InternalVisitor>::f64 Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_binary::Extract> as value_bag::internal::InternalVisitor>::f64 Unexecuted instantiation: <&mut <value_bag::internal::Internal>::to_owned::OwnedVisitor as value_bag::internal::InternalVisitor>::f64 Unexecuted instantiation: <&mut <value_bag::ValueBag as core::fmt::Debug>::fmt::DebugVisitor as value_bag::internal::InternalVisitor>::f64 Unexecuted instantiation: <&mut <value_bag::ValueBag as core::fmt::Display>::fmt::DisplayVisitor as value_bag::internal::InternalVisitor>::f64 Unexecuted instantiation: <&mut <value_bag::internal::Internal>::cast::CastVisitor as value_bag::internal::InternalVisitor>::f64 |
273 | | |
274 | 0 | fn bool(&mut self, v: bool) -> Result<(), Error> { |
275 | 0 | (**self).bool(v) |
276 | 0 | } Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<dyn sval_dynamic::stream::Stream> as value_bag::internal::InternalVisitor>::bool Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::tag::Extract> as value_bag::internal::InternalVisitor>::bool Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_f32::Extract> as value_bag::internal::InternalVisitor>::bool Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_f64::Extract> as value_bag::internal::InternalVisitor>::bool Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_bool::Extract> as value_bag::internal::InternalVisitor>::bool Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_i128::Extract> as value_bag::internal::InternalVisitor>::bool Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_text::Extract> as value_bag::internal::InternalVisitor>::bool Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_u128::Extract> as value_bag::internal::InternalVisitor>::bool Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_binary::Extract> as value_bag::internal::InternalVisitor>::bool Unexecuted instantiation: <&mut <value_bag::internal::Internal>::to_owned::OwnedVisitor as value_bag::internal::InternalVisitor>::bool Unexecuted instantiation: <&mut <value_bag::ValueBag as core::fmt::Debug>::fmt::DebugVisitor as value_bag::internal::InternalVisitor>::bool Unexecuted instantiation: <&mut <value_bag::ValueBag as core::fmt::Display>::fmt::DisplayVisitor as value_bag::internal::InternalVisitor>::bool Unexecuted instantiation: <&mut <value_bag::internal::Internal>::cast::CastVisitor as value_bag::internal::InternalVisitor>::bool |
277 | | |
278 | 0 | fn char(&mut self, v: char) -> Result<(), Error> { |
279 | 0 | (**self).char(v) |
280 | 0 | } Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<dyn sval_dynamic::stream::Stream> as value_bag::internal::InternalVisitor>::char Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::tag::Extract> as value_bag::internal::InternalVisitor>::char Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_f32::Extract> as value_bag::internal::InternalVisitor>::char Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_f64::Extract> as value_bag::internal::InternalVisitor>::char Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_bool::Extract> as value_bag::internal::InternalVisitor>::char Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_i128::Extract> as value_bag::internal::InternalVisitor>::char Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_text::Extract> as value_bag::internal::InternalVisitor>::char Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_u128::Extract> as value_bag::internal::InternalVisitor>::char Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_binary::Extract> as value_bag::internal::InternalVisitor>::char Unexecuted instantiation: <&mut <value_bag::internal::Internal>::to_owned::OwnedVisitor as value_bag::internal::InternalVisitor>::char Unexecuted instantiation: <&mut <value_bag::ValueBag as core::fmt::Debug>::fmt::DebugVisitor as value_bag::internal::InternalVisitor>::char Unexecuted instantiation: <&mut <value_bag::ValueBag as core::fmt::Display>::fmt::DisplayVisitor as value_bag::internal::InternalVisitor>::char Unexecuted instantiation: <&mut <value_bag::internal::Internal>::cast::CastVisitor as value_bag::internal::InternalVisitor>::char |
281 | | |
282 | 0 | fn str(&mut self, v: &str) -> Result<(), Error> { |
283 | 0 | (**self).str(v) |
284 | 0 | } |
285 | | |
286 | 0 | fn borrowed_str(&mut self, v: &'v str) -> Result<(), Error> { |
287 | 0 | (**self).borrowed_str(v) |
288 | 0 | } Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<dyn sval_dynamic::stream::Stream> as value_bag::internal::InternalVisitor>::borrowed_str Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::tag::Extract> as value_bag::internal::InternalVisitor>::borrowed_str Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_f32::Extract> as value_bag::internal::InternalVisitor>::borrowed_str Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_f64::Extract> as value_bag::internal::InternalVisitor>::borrowed_str Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_bool::Extract> as value_bag::internal::InternalVisitor>::borrowed_str Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_i128::Extract> as value_bag::internal::InternalVisitor>::borrowed_str Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_text::Extract> as value_bag::internal::InternalVisitor>::borrowed_str Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_u128::Extract> as value_bag::internal::InternalVisitor>::borrowed_str Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_binary::Extract> as value_bag::internal::InternalVisitor>::borrowed_str Unexecuted instantiation: <&mut <value_bag::internal::Internal>::to_owned::OwnedVisitor as value_bag::internal::InternalVisitor>::borrowed_str Unexecuted instantiation: <&mut <value_bag::ValueBag as core::fmt::Debug>::fmt::DebugVisitor as value_bag::internal::InternalVisitor>::borrowed_str Unexecuted instantiation: <&mut <value_bag::ValueBag as core::fmt::Display>::fmt::DisplayVisitor as value_bag::internal::InternalVisitor>::borrowed_str Unexecuted instantiation: <&mut <value_bag::internal::Internal>::cast::CastVisitor as value_bag::internal::InternalVisitor>::borrowed_str |
289 | | |
290 | 0 | fn none(&mut self) -> Result<(), Error> { |
291 | 0 | (**self).none() |
292 | 0 | } Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<dyn sval_dynamic::stream::Stream> as value_bag::internal::InternalVisitor>::none Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::tag::Extract> as value_bag::internal::InternalVisitor>::none Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_f32::Extract> as value_bag::internal::InternalVisitor>::none Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_f64::Extract> as value_bag::internal::InternalVisitor>::none Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_bool::Extract> as value_bag::internal::InternalVisitor>::none Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_i128::Extract> as value_bag::internal::InternalVisitor>::none Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_text::Extract> as value_bag::internal::InternalVisitor>::none Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_u128::Extract> as value_bag::internal::InternalVisitor>::none Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_binary::Extract> as value_bag::internal::InternalVisitor>::none Unexecuted instantiation: <&mut <value_bag::internal::Internal>::to_owned::OwnedVisitor as value_bag::internal::InternalVisitor>::none Unexecuted instantiation: <&mut <value_bag::ValueBag as core::fmt::Debug>::fmt::DebugVisitor as value_bag::internal::InternalVisitor>::none Unexecuted instantiation: <&mut <value_bag::ValueBag as core::fmt::Display>::fmt::DisplayVisitor as value_bag::internal::InternalVisitor>::none Unexecuted instantiation: <&mut <value_bag::internal::Internal>::cast::CastVisitor as value_bag::internal::InternalVisitor>::none |
293 | | |
294 | | #[cfg(feature = "error")] |
295 | 0 | fn error(&mut self, v: &(dyn error::Error + 'static)) -> Result<(), Error> { |
296 | 0 | (**self).error(v) |
297 | 0 | } |
298 | | |
299 | | #[cfg(feature = "error")] |
300 | 0 | fn borrowed_error(&mut self, v: &'v (dyn error::Error + 'static)) -> Result<(), Error> { |
301 | 0 | (**self).borrowed_error(v) |
302 | 0 | } Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<dyn sval_dynamic::stream::Stream> as value_bag::internal::InternalVisitor>::borrowed_error Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::tag::Extract> as value_bag::internal::InternalVisitor>::borrowed_error Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_f32::Extract> as value_bag::internal::InternalVisitor>::borrowed_error Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_f64::Extract> as value_bag::internal::InternalVisitor>::borrowed_error Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_bool::Extract> as value_bag::internal::InternalVisitor>::borrowed_error Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_i128::Extract> as value_bag::internal::InternalVisitor>::borrowed_error Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_text::Extract> as value_bag::internal::InternalVisitor>::borrowed_error Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_u128::Extract> as value_bag::internal::InternalVisitor>::borrowed_error Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_binary::Extract> as value_bag::internal::InternalVisitor>::borrowed_error Unexecuted instantiation: <&mut <value_bag::internal::Internal>::to_owned::OwnedVisitor as value_bag::internal::InternalVisitor>::borrowed_error Unexecuted instantiation: <&mut <value_bag::ValueBag as core::fmt::Debug>::fmt::DebugVisitor as value_bag::internal::InternalVisitor>::borrowed_error Unexecuted instantiation: <&mut <value_bag::ValueBag as core::fmt::Display>::fmt::DisplayVisitor as value_bag::internal::InternalVisitor>::borrowed_error Unexecuted instantiation: <&mut <value_bag::internal::Internal>::cast::CastVisitor as value_bag::internal::InternalVisitor>::borrowed_error |
303 | | |
304 | | #[cfg(all(feature = "error", feature = "owned"))] |
305 | 0 | fn shared_error( |
306 | 0 | &mut self, |
307 | 0 | v: &Arc<dyn error::DowncastError + Send + Sync>, |
308 | 0 | ) -> Result<(), Error> { |
309 | 0 | (**self).shared_error(v) |
310 | 0 | } Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<dyn sval_dynamic::stream::Stream> as value_bag::internal::InternalVisitor>::shared_error Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::tag::Extract> as value_bag::internal::InternalVisitor>::shared_error Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_f32::Extract> as value_bag::internal::InternalVisitor>::shared_error Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_f64::Extract> as value_bag::internal::InternalVisitor>::shared_error Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_bool::Extract> as value_bag::internal::InternalVisitor>::shared_error Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_i128::Extract> as value_bag::internal::InternalVisitor>::shared_error Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_text::Extract> as value_bag::internal::InternalVisitor>::shared_error Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_u128::Extract> as value_bag::internal::InternalVisitor>::shared_error Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_binary::Extract> as value_bag::internal::InternalVisitor>::shared_error Unexecuted instantiation: <&mut <value_bag::internal::Internal>::to_owned::OwnedVisitor as value_bag::internal::InternalVisitor>::shared_error Unexecuted instantiation: <&mut <value_bag::ValueBag as core::fmt::Debug>::fmt::DebugVisitor as value_bag::internal::InternalVisitor>::shared_error Unexecuted instantiation: <&mut <value_bag::ValueBag as core::fmt::Display>::fmt::DisplayVisitor as value_bag::internal::InternalVisitor>::shared_error Unexecuted instantiation: <&mut <value_bag::internal::Internal>::cast::CastVisitor as value_bag::internal::InternalVisitor>::shared_error |
311 | | |
312 | | #[cfg(feature = "sval2")] |
313 | 0 | fn sval2(&mut self, v: &dyn sval::v2::Value) -> Result<(), Error> { |
314 | 0 | (**self).sval2(v) |
315 | 0 | } |
316 | | |
317 | | #[cfg(feature = "sval2")] |
318 | 0 | fn borrowed_sval2(&mut self, v: &'v dyn sval::v2::Value) -> Result<(), Error> { |
319 | 0 | (**self).borrowed_sval2(v) |
320 | 0 | } Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<dyn sval_dynamic::stream::Stream> as value_bag::internal::InternalVisitor>::borrowed_sval2 Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::tag::Extract> as value_bag::internal::InternalVisitor>::borrowed_sval2 Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_f32::Extract> as value_bag::internal::InternalVisitor>::borrowed_sval2 Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_f64::Extract> as value_bag::internal::InternalVisitor>::borrowed_sval2 Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_bool::Extract> as value_bag::internal::InternalVisitor>::borrowed_sval2 Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_i128::Extract> as value_bag::internal::InternalVisitor>::borrowed_sval2 Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_text::Extract> as value_bag::internal::InternalVisitor>::borrowed_sval2 Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_u128::Extract> as value_bag::internal::InternalVisitor>::borrowed_sval2 Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_binary::Extract> as value_bag::internal::InternalVisitor>::borrowed_sval2 Unexecuted instantiation: <&mut <value_bag::internal::Internal>::to_owned::OwnedVisitor as value_bag::internal::InternalVisitor>::borrowed_sval2 Unexecuted instantiation: <&mut <value_bag::ValueBag as core::fmt::Debug>::fmt::DebugVisitor as value_bag::internal::InternalVisitor>::borrowed_sval2 Unexecuted instantiation: <&mut <value_bag::ValueBag as core::fmt::Display>::fmt::DisplayVisitor as value_bag::internal::InternalVisitor>::borrowed_sval2 Unexecuted instantiation: <&mut <value_bag::internal::Internal>::cast::CastVisitor as value_bag::internal::InternalVisitor>::borrowed_sval2 |
321 | | |
322 | | #[cfg(all(feature = "sval2", feature = "owned"))] |
323 | 0 | fn shared_sval2( |
324 | 0 | &mut self, |
325 | 0 | v: &Arc<dyn sval::v2::DowncastValue + Send + Sync>, |
326 | 0 | ) -> Result<(), Error> { |
327 | 0 | (**self).shared_sval2(v) |
328 | 0 | } Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<dyn sval_dynamic::stream::Stream> as value_bag::internal::InternalVisitor>::shared_sval2 Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::tag::Extract> as value_bag::internal::InternalVisitor>::shared_sval2 Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_f32::Extract> as value_bag::internal::InternalVisitor>::shared_sval2 Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_f64::Extract> as value_bag::internal::InternalVisitor>::shared_sval2 Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_bool::Extract> as value_bag::internal::InternalVisitor>::shared_sval2 Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_i128::Extract> as value_bag::internal::InternalVisitor>::shared_sval2 Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_text::Extract> as value_bag::internal::InternalVisitor>::shared_sval2 Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_u128::Extract> as value_bag::internal::InternalVisitor>::shared_sval2 Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_binary::Extract> as value_bag::internal::InternalVisitor>::shared_sval2 Unexecuted instantiation: <&mut <value_bag::internal::Internal>::to_owned::OwnedVisitor as value_bag::internal::InternalVisitor>::shared_sval2 Unexecuted instantiation: <&mut <value_bag::ValueBag as core::fmt::Debug>::fmt::DebugVisitor as value_bag::internal::InternalVisitor>::shared_sval2 Unexecuted instantiation: <&mut <value_bag::ValueBag as core::fmt::Display>::fmt::DisplayVisitor as value_bag::internal::InternalVisitor>::shared_sval2 Unexecuted instantiation: <&mut <value_bag::internal::Internal>::cast::CastVisitor as value_bag::internal::InternalVisitor>::shared_sval2 |
329 | | |
330 | | #[cfg(feature = "serde1")] |
331 | 0 | fn serde1(&mut self, v: &dyn serde::v1::Serialize) -> Result<(), Error> { |
332 | 0 | (**self).serde1(v) |
333 | 0 | } |
334 | | |
335 | | #[cfg(feature = "serde1")] |
336 | 0 | fn borrowed_serde1(&mut self, v: &'v dyn serde::v1::Serialize) -> Result<(), Error> { |
337 | 0 | (**self).borrowed_serde1(v) |
338 | 0 | } Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<dyn sval_dynamic::stream::Stream> as value_bag::internal::InternalVisitor>::borrowed_serde1 Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::tag::Extract> as value_bag::internal::InternalVisitor>::borrowed_serde1 Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_f32::Extract> as value_bag::internal::InternalVisitor>::borrowed_serde1 Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_f64::Extract> as value_bag::internal::InternalVisitor>::borrowed_serde1 Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_bool::Extract> as value_bag::internal::InternalVisitor>::borrowed_serde1 Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_i128::Extract> as value_bag::internal::InternalVisitor>::borrowed_serde1 Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_text::Extract> as value_bag::internal::InternalVisitor>::borrowed_serde1 Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_u128::Extract> as value_bag::internal::InternalVisitor>::borrowed_serde1 Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_binary::Extract> as value_bag::internal::InternalVisitor>::borrowed_serde1 Unexecuted instantiation: <&mut <value_bag::internal::Internal>::to_owned::OwnedVisitor as value_bag::internal::InternalVisitor>::borrowed_serde1 Unexecuted instantiation: <&mut <value_bag::ValueBag as core::fmt::Debug>::fmt::DebugVisitor as value_bag::internal::InternalVisitor>::borrowed_serde1 Unexecuted instantiation: <&mut <value_bag::ValueBag as core::fmt::Display>::fmt::DisplayVisitor as value_bag::internal::InternalVisitor>::borrowed_serde1 Unexecuted instantiation: <&mut <value_bag::internal::Internal>::cast::CastVisitor as value_bag::internal::InternalVisitor>::borrowed_serde1 |
339 | | |
340 | | #[cfg(all(feature = "serde1", feature = "owned"))] |
341 | 0 | fn shared_serde1( |
342 | 0 | &mut self, |
343 | 0 | v: &Arc<dyn serde::v1::DowncastSerialize + Send + Sync>, |
344 | 0 | ) -> Result<(), Error> { |
345 | 0 | (**self).shared_serde1(v) |
346 | 0 | } Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<dyn sval_dynamic::stream::Stream> as value_bag::internal::InternalVisitor>::shared_serde1 Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::tag::Extract> as value_bag::internal::InternalVisitor>::shared_serde1 Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_f32::Extract> as value_bag::internal::InternalVisitor>::shared_serde1 Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_f64::Extract> as value_bag::internal::InternalVisitor>::shared_serde1 Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_bool::Extract> as value_bag::internal::InternalVisitor>::shared_serde1 Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_i128::Extract> as value_bag::internal::InternalVisitor>::shared_serde1 Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_text::Extract> as value_bag::internal::InternalVisitor>::shared_serde1 Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_u128::Extract> as value_bag::internal::InternalVisitor>::shared_serde1 Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_binary::Extract> as value_bag::internal::InternalVisitor>::shared_serde1 Unexecuted instantiation: <&mut <value_bag::internal::Internal>::to_owned::OwnedVisitor as value_bag::internal::InternalVisitor>::shared_serde1 Unexecuted instantiation: <&mut <value_bag::ValueBag as core::fmt::Debug>::fmt::DebugVisitor as value_bag::internal::InternalVisitor>::shared_serde1 Unexecuted instantiation: <&mut <value_bag::ValueBag as core::fmt::Display>::fmt::DisplayVisitor as value_bag::internal::InternalVisitor>::shared_serde1 Unexecuted instantiation: <&mut <value_bag::internal::Internal>::cast::CastVisitor as value_bag::internal::InternalVisitor>::shared_serde1 |
347 | | |
348 | | #[cfg(feature = "seq")] |
349 | | fn seq(&mut self, seq: &dyn seq::Seq) -> Result<(), Error> { |
350 | | (**self).seq(seq) |
351 | | } |
352 | | |
353 | | #[cfg(feature = "seq")] |
354 | | fn borrowed_seq(&mut self, seq: &'v dyn seq::Seq) -> Result<(), Error> { |
355 | | (**self).borrowed_seq(seq) |
356 | | } |
357 | | |
358 | | #[cfg(all(feature = "seq", feature = "owned"))] |
359 | | fn shared_seq(&mut self, seq: &Arc<dyn seq::DowncastSeq + Send + Sync>) -> Result<(), Error> { |
360 | | (**self).shared_seq(seq) |
361 | | } |
362 | | |
363 | 0 | fn poisoned(&mut self, msg: &'static str) -> Result<(), Error> { |
364 | 0 | (**self).poisoned(msg) |
365 | 0 | } Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<dyn sval_dynamic::stream::Stream> as value_bag::internal::InternalVisitor>::poisoned Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::tag::Extract> as value_bag::internal::InternalVisitor>::poisoned Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_f32::Extract> as value_bag::internal::InternalVisitor>::poisoned Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_f64::Extract> as value_bag::internal::InternalVisitor>::poisoned Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_bool::Extract> as value_bag::internal::InternalVisitor>::poisoned Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_i128::Extract> as value_bag::internal::InternalVisitor>::poisoned Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_text::Extract> as value_bag::internal::InternalVisitor>::poisoned Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_u128::Extract> as value_bag::internal::InternalVisitor>::poisoned Unexecuted instantiation: <&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_binary::Extract> as value_bag::internal::InternalVisitor>::poisoned Unexecuted instantiation: <&mut <value_bag::internal::Internal>::to_owned::OwnedVisitor as value_bag::internal::InternalVisitor>::poisoned Unexecuted instantiation: <&mut <value_bag::ValueBag as core::fmt::Debug>::fmt::DebugVisitor as value_bag::internal::InternalVisitor>::poisoned Unexecuted instantiation: <&mut <value_bag::ValueBag as core::fmt::Display>::fmt::DisplayVisitor as value_bag::internal::InternalVisitor>::poisoned Unexecuted instantiation: <&mut <value_bag::internal::Internal>::cast::CastVisitor as value_bag::internal::InternalVisitor>::poisoned |
366 | | } |
367 | | |
368 | | impl<'v> ValueBag<'v> { |
369 | | /// Visit the value using an internal visitor. |
370 | | #[inline] |
371 | 0 | pub(crate) fn internal_visit(&self, visitor: impl InternalVisitor<'v>) -> Result<(), Error> { |
372 | 0 | self.inner.internal_visit(visitor) |
373 | 0 | } Unexecuted instantiation: <value_bag::ValueBag>::internal_visit::<&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<dyn sval_dynamic::stream::Stream>> Unexecuted instantiation: <value_bag::ValueBag>::internal_visit::<&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::tag::Extract>> Unexecuted instantiation: <value_bag::ValueBag>::internal_visit::<&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_f32::Extract>> Unexecuted instantiation: <value_bag::ValueBag>::internal_visit::<&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_f64::Extract>> Unexecuted instantiation: <value_bag::ValueBag>::internal_visit::<&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_bool::Extract>> Unexecuted instantiation: <value_bag::ValueBag>::internal_visit::<&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_i128::Extract>> Unexecuted instantiation: <value_bag::ValueBag>::internal_visit::<&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_text::Extract>> Unexecuted instantiation: <value_bag::ValueBag>::internal_visit::<&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_u128::Extract>> Unexecuted instantiation: <value_bag::ValueBag>::internal_visit::<&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_binary::Extract>> Unexecuted instantiation: <value_bag::ValueBag>::internal_visit::<&mut <value_bag::ValueBag as core::fmt::Debug>::fmt::DebugVisitor> Unexecuted instantiation: <value_bag::ValueBag>::internal_visit::<&mut <value_bag::ValueBag as core::fmt::Display>::fmt::DisplayVisitor> |
374 | | } |
375 | | |
376 | | impl<'v> Internal<'v> { |
377 | | #[inline] |
378 | 0 | pub(crate) const fn by_ref(&self) -> Internal<'_> { |
379 | 0 | match self { |
380 | 0 | Internal::Signed(value) => Internal::Signed(*value), |
381 | 0 | Internal::Unsigned(value) => Internal::Unsigned(*value), |
382 | 0 | Internal::BigSigned(value) => Internal::BigSigned(*value), |
383 | 0 | Internal::BigUnsigned(value) => Internal::BigUnsigned(*value), |
384 | 0 | Internal::Float(value) => Internal::Float(*value), |
385 | 0 | Internal::Bool(value) => Internal::Bool(*value), |
386 | 0 | Internal::Char(value) => Internal::Char(*value), |
387 | 0 | Internal::Str(value) => Internal::Str(value), |
388 | 0 | Internal::None => Internal::None, |
389 | | |
390 | 0 | Internal::Fill(value) => Internal::Fill(*value), |
391 | | |
392 | 0 | Internal::AnonDebug(value) => Internal::AnonDebug(*value), |
393 | 0 | Internal::Debug(value) => Internal::Debug(*value), |
394 | | |
395 | 0 | Internal::AnonDisplay(value) => Internal::AnonDisplay(*value), |
396 | 0 | Internal::Display(value) => Internal::Display(*value), |
397 | | |
398 | | #[cfg(feature = "error")] |
399 | 0 | Internal::AnonError(value) => Internal::AnonError(*value), |
400 | | #[cfg(feature = "error")] |
401 | 0 | Internal::Error(value) => Internal::Error(*value), |
402 | | |
403 | | #[cfg(feature = "sval2")] |
404 | 0 | Internal::AnonSval2(value) => Internal::AnonSval2(*value), |
405 | | #[cfg(feature = "sval2")] |
406 | 0 | Internal::Sval2(value) => Internal::Sval2(*value), |
407 | | |
408 | | #[cfg(feature = "serde1")] |
409 | 0 | Internal::AnonSerde1(value) => Internal::AnonSerde1(*value), |
410 | | #[cfg(feature = "serde1")] |
411 | 0 | Internal::Serde1(value) => Internal::Serde1(*value), |
412 | | |
413 | | #[cfg(feature = "seq")] |
414 | | Internal::AnonSeq(value) => Internal::AnonSeq(*value), |
415 | | |
416 | | #[cfg(feature = "owned")] |
417 | 0 | Internal::SharedDebug(ref value) => Internal::SharedRefDebug(value), |
418 | | #[cfg(feature = "owned")] |
419 | 0 | Internal::SharedDisplay(ref value) => Internal::SharedRefDisplay(value), |
420 | | #[cfg(all(feature = "error", feature = "owned"))] |
421 | 0 | Internal::SharedError(ref value) => Internal::SharedRefError(value), |
422 | | #[cfg(all(feature = "serde1", feature = "owned"))] |
423 | 0 | Internal::SharedSerde1(ref value) => Internal::SharedRefSerde1(value), |
424 | | #[cfg(all(feature = "sval2", feature = "owned"))] |
425 | 0 | Internal::SharedSval2(ref value) => Internal::SharedRefSval2(value), |
426 | | #[cfg(all(feature = "seq", feature = "owned"))] |
427 | | Internal::SharedSeq(ref value) => Internal::SharedRefSeq(value), |
428 | | |
429 | | #[cfg(feature = "owned")] |
430 | 0 | Internal::SharedRefDebug(value) => Internal::SharedRefDebug(*value), |
431 | | #[cfg(feature = "owned")] |
432 | 0 | Internal::SharedRefDisplay(value) => Internal::SharedRefDisplay(*value), |
433 | | #[cfg(all(feature = "error", feature = "owned"))] |
434 | 0 | Internal::SharedRefError(value) => Internal::SharedRefError(*value), |
435 | | #[cfg(all(feature = "serde1", feature = "owned"))] |
436 | 0 | Internal::SharedRefSerde1(value) => Internal::SharedRefSerde1(*value), |
437 | | #[cfg(all(feature = "sval2", feature = "owned"))] |
438 | 0 | Internal::SharedRefSval2(value) => Internal::SharedRefSval2(*value), |
439 | | #[cfg(all(feature = "seq", feature = "owned"))] |
440 | | Internal::SharedRefSeq(value) => Internal::SharedRefSeq(*value), |
441 | | |
442 | 0 | Internal::Poisoned(msg) => Internal::Poisoned(msg), |
443 | | } |
444 | 0 | } |
445 | | |
446 | | #[inline] |
447 | 0 | pub(crate) fn internal_visit( |
448 | 0 | &self, |
449 | 0 | mut visitor: impl InternalVisitor<'v>, |
450 | 0 | ) -> Result<(), Error> { |
451 | 0 | match self { |
452 | 0 | Internal::Signed(value) => visitor.i64(*value), |
453 | 0 | Internal::Unsigned(value) => visitor.u64(*value), |
454 | | #[cfg(feature = "inline-i128")] |
455 | 0 | Internal::BigSigned(value) => visitor.i128(value), |
456 | | #[cfg(feature = "inline-i128")] |
457 | 0 | Internal::BigUnsigned(value) => visitor.u128(value), |
458 | | #[cfg(not(feature = "inline-i128"))] |
459 | | Internal::BigSigned(value) => visitor.borrowed_i128(value), |
460 | | #[cfg(not(feature = "inline-i128"))] |
461 | | Internal::BigUnsigned(value) => visitor.borrowed_u128(value), |
462 | 0 | Internal::Float(value) => visitor.f64(*value), |
463 | 0 | Internal::Bool(value) => visitor.bool(*value), |
464 | 0 | Internal::Char(value) => visitor.char(*value), |
465 | 0 | Internal::Str(value) => visitor.borrowed_str(value), |
466 | 0 | Internal::None => visitor.none(), |
467 | | |
468 | 0 | Internal::Fill(value) => visitor.fill(*value), |
469 | | |
470 | 0 | Internal::AnonDebug(value) => visitor.borrowed_debug(*value), |
471 | 0 | Internal::Debug(value) => visitor.borrowed_debug(value.as_super()), |
472 | | |
473 | 0 | Internal::AnonDisplay(value) => visitor.borrowed_display(*value), |
474 | 0 | Internal::Display(value) => visitor.borrowed_display(value.as_super()), |
475 | | |
476 | | #[cfg(feature = "error")] |
477 | 0 | Internal::AnonError(value) => visitor.borrowed_error(*value), |
478 | | #[cfg(feature = "error")] |
479 | 0 | Internal::Error(value) => visitor.borrowed_error(value.as_super()), |
480 | | |
481 | | #[cfg(feature = "sval2")] |
482 | 0 | Internal::AnonSval2(value) => visitor.borrowed_sval2(*value), |
483 | | #[cfg(feature = "sval2")] |
484 | 0 | Internal::Sval2(value) => visitor.borrowed_sval2(value.as_super()), |
485 | | |
486 | | #[cfg(feature = "serde1")] |
487 | 0 | Internal::AnonSerde1(value) => visitor.borrowed_serde1(*value), |
488 | | #[cfg(feature = "serde1")] |
489 | 0 | Internal::Serde1(value) => visitor.borrowed_serde1(value.as_super()), |
490 | | |
491 | | #[cfg(feature = "seq")] |
492 | | Internal::AnonSeq(value) => visitor.borrowed_seq(*value), |
493 | | |
494 | | #[cfg(feature = "owned")] |
495 | 0 | Internal::SharedDebug(ref value) => visitor.shared_debug(value), |
496 | | #[cfg(feature = "owned")] |
497 | 0 | Internal::SharedDisplay(ref value) => visitor.shared_display(value), |
498 | | #[cfg(all(feature = "error", feature = "owned"))] |
499 | 0 | Internal::SharedError(ref value) => visitor.shared_error(value), |
500 | | #[cfg(all(feature = "serde1", feature = "owned"))] |
501 | 0 | Internal::SharedSerde1(ref value) => visitor.shared_serde1(value), |
502 | | #[cfg(all(feature = "sval2", feature = "owned"))] |
503 | 0 | Internal::SharedSval2(ref value) => visitor.shared_sval2(value), |
504 | | #[cfg(all(feature = "seq", feature = "owned"))] |
505 | | Internal::SharedSeq(value) => visitor.shared_seq(value), |
506 | | |
507 | | #[cfg(feature = "owned")] |
508 | 0 | Internal::SharedRefDebug(value) => visitor.shared_debug(value), |
509 | | #[cfg(feature = "owned")] |
510 | 0 | Internal::SharedRefDisplay(value) => visitor.shared_display(value), |
511 | | #[cfg(all(feature = "error", feature = "owned"))] |
512 | 0 | Internal::SharedRefError(value) => visitor.shared_error(value), |
513 | | #[cfg(all(feature = "serde1", feature = "owned"))] |
514 | 0 | Internal::SharedRefSerde1(value) => visitor.shared_serde1(value), |
515 | | #[cfg(all(feature = "sval2", feature = "owned"))] |
516 | 0 | Internal::SharedRefSval2(value) => visitor.shared_sval2(value), |
517 | | #[cfg(all(feature = "seq", feature = "owned"))] |
518 | | Internal::SharedRefSeq(value) => visitor.shared_seq(value), |
519 | | |
520 | 0 | Internal::Poisoned(msg) => visitor.poisoned(msg), |
521 | | } |
522 | 0 | } Unexecuted instantiation: <value_bag::internal::Internal>::internal_visit::<&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<dyn sval_dynamic::stream::Stream>> Unexecuted instantiation: <value_bag::internal::Internal>::internal_visit::<&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::tag::Extract>> Unexecuted instantiation: <value_bag::internal::Internal>::internal_visit::<&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_f32::Extract>> Unexecuted instantiation: <value_bag::internal::Internal>::internal_visit::<&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_f64::Extract>> Unexecuted instantiation: <value_bag::internal::Internal>::internal_visit::<&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_bool::Extract>> Unexecuted instantiation: <value_bag::internal::Internal>::internal_visit::<&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_i128::Extract>> Unexecuted instantiation: <value_bag::internal::Internal>::internal_visit::<&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_text::Extract>> Unexecuted instantiation: <value_bag::internal::Internal>::internal_visit::<&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_u128::Extract>> Unexecuted instantiation: <value_bag::internal::Internal>::internal_visit::<&mut <value_bag::ValueBag as sval_ref::ValueRef>::stream_ref::Sval2Visitor<sval::value::default_value::to_binary::Extract>> Unexecuted instantiation: <value_bag::internal::Internal>::internal_visit::<&mut <value_bag::internal::Internal>::cast::CastVisitor> Unexecuted instantiation: <value_bag::internal::Internal>::internal_visit::<&mut <value_bag::internal::Internal>::to_owned::OwnedVisitor> Unexecuted instantiation: <value_bag::internal::Internal>::internal_visit::<&mut <value_bag::ValueBag as core::fmt::Debug>::fmt::DebugVisitor> Unexecuted instantiation: <value_bag::internal::Internal>::internal_visit::<&mut <value_bag::ValueBag as core::fmt::Display>::fmt::DisplayVisitor> |
523 | | } |