Searched refs:from_any (Results 1 – 2 of 2) sorted by relevance
/third_party/rust/crates/log/rfcs/ |
D | 0296-structured-logging.md | 145 Value::from_any(self, |from, v| from.u64(*v as u64)) 150 The `Value::from_any` method accepts any type, `&T`, and an ad-hoc function that tells the `Value` … 154 pub fn from_any<T>(v: &'v T, from: fn(FromAny, &T) -> Result<(), Error>) -> Self { 202 Value::from_any(self, |from, uuid| from.debug(uuid.to_hyphenated())) 207 … the `&'v Uuid`, it's the owned `ToHyphenated<'v>`. This is why `Value::from_any` uses a separate … 491 …nsuming structured data on log records. The `ToValue` trait and `Value::from_any` methods capture … 633 pub fn from_any<T>(v: &'v T, from: FromAnyFn<T>) -> Self { 638 Self::from_any(v, |from, v| from.debug(v)) 643 Self::from_any(v, |from, v| from.sval(v)) 648 Self::from_any(v, |from, v| from.serde(v)) [all …]
|
/third_party/rust/crates/log/src/kv/ |
D | value.rs | 158 pub fn from_any<T>(value: &'v T) -> Self in from_any() method
|