[−][src]Struct log::key_values::value::Value
The value in a key-value pair.
Methods
impl<'v> Value<'v>
[src]
pub fn visit(&self, visitor: &mut dyn Visitor) -> Result<(), Error>
[src]
Visit a value using a Visitor
.
impl<'v> Value<'v>
[src]
pub fn from_debug(
v: &'v impl Debug
) -> Self
[src]
v: &'v impl Debug
) -> Self
Create a value from a fmt::Debug
.
impl<'v> Value<'v>
[src]
impl<'v> Value<'v>
[src]
pub fn from_serde(
v: &'v impl Serialize + Debug
) -> Self
[src]
v: &'v impl Serialize + Debug
) -> Self
Create a value from a serde::Serialize
.
impl<'v> Value<'v>
[src]
pub fn from_any<T>(
v: &'v T,
from: fn(_: FromAny, _: &T) -> Result<(), Error>
) -> Self
[src]
v: &'v T,
from: fn(_: FromAny, _: &T) -> Result<(), Error>
) -> Self
Create a value from some type.
The value must be provided with a compatible from method,
but doesn't need to implement any traits. This method is
useful when the type T
can't satisfy the requirements
for other Value::from
methods, but the lifetime 'v
prevents local new-types from being used.
Trait Implementations
impl<'v> ToValue for Value<'v>
[src]
impl<'v> Debug for Value<'v>
[src]
impl<'v> Display for Value<'v>
[src]
impl<'v> Serialize for Value<'v>
[src]
impl<'v> Value for Value<'v>
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Serialize for T where
T: Serialize + ?Sized,
[src]
T: Serialize + ?Sized,