Trait sval::value::Value

source ·
pub trait Value {
    // Required method
    fn stream(&self, stream: &mut Stream<'_>) -> Result<(), Error>;
}
Expand description

A value with a streamable structure.

Use the sval::stream function to stream a value.

Required Methods§

source

fn stream(&self, stream: &mut Stream<'_>) -> Result<(), Error>

Stream this value.

Implementations on Foreign Types§

source§

impl Value for bool

source§

fn stream(&self, stream: &mut Stream<'_>) -> Result<(), Error>

source§

impl Value for char

source§

fn stream(&self, stream: &mut Stream<'_>) -> Result<(), Error>

source§

impl Value for f32

source§

fn stream(&self, stream: &mut Stream<'_>) -> Result<(), Error>

source§

impl Value for f64

source§

fn stream(&self, stream: &mut Stream<'_>) -> Result<(), Error>

source§

impl Value for i8

source§

fn stream(&self, stream: &mut Stream<'_>) -> Result<(), Error>

source§

impl Value for i16

source§

fn stream(&self, stream: &mut Stream<'_>) -> Result<(), Error>

source§

impl Value for i32

source§

fn stream(&self, stream: &mut Stream<'_>) -> Result<(), Error>

source§

impl Value for i64

source§

fn stream(&self, stream: &mut Stream<'_>) -> Result<(), Error>

source§

impl Value for i128

source§

fn stream(&self, stream: &mut Stream<'_>) -> Result<(), Error>

source§

impl Value for str

source§

fn stream(&self, stream: &mut Stream<'_>) -> Result<(), Error>

source§

impl Value for u8

source§

fn stream(&self, stream: &mut Stream<'_>) -> Result<(), Error>

source§

impl Value for u16

source§

fn stream(&self, stream: &mut Stream<'_>) -> Result<(), Error>

source§

impl Value for u32

source§

fn stream(&self, stream: &mut Stream<'_>) -> Result<(), Error>

source§

impl Value for u64

source§

fn stream(&self, stream: &mut Stream<'_>) -> Result<(), Error>

source§

impl Value for u128

source§

fn stream(&self, stream: &mut Stream<'_>) -> Result<(), Error>

source§

impl Value for ()

source§

fn stream(&self, stream: &mut Stream<'_>) -> Result<(), Error>

source§

impl Value for String

source§

fn stream(&self, stream: &mut Stream<'_>) -> Result<(), Error>

source§

impl<'a, T> Value for &'a T
where T: Value + ?Sized,

source§

fn stream(&self, stream: &mut Stream<'_>) -> Result<(), Error>

source§

impl<K, V> Value for BTreeMap<K, V>
where K: Eq + Value, V: Value,

source§

fn stream(&self, stream: &mut Stream<'_>) -> Result<(), Error>

source§

impl<K, V, H> Value for HashMap<K, V, H>
where K: Hash + Eq + Value, V: Value, H: BuildHasher,

source§

fn stream(&self, stream: &mut Stream<'_>) -> Result<(), Error>

source§

impl<T> Value for Option<T>
where T: Value,

source§

fn stream(&self, stream: &mut Stream<'_>) -> Result<(), Error>

source§

impl<T> Value for [T]
where T: Value,

source§

fn stream(&self, stream: &mut Stream<'_>) -> Result<(), Error>

source§

impl<T> Value for Box<T>
where T: Value + ?Sized,

source§

fn stream(&self, stream: &mut Stream<'_>) -> Result<(), Error>

source§

impl<T> Value for Rc<T>
where T: Value + ?Sized,

source§

fn stream(&self, stream: &mut Stream<'_>) -> Result<(), Error>

source§

impl<T> Value for Arc<T>
where T: Value + ?Sized,

source§

fn stream(&self, stream: &mut Stream<'_>) -> Result<(), Error>

source§

impl<T> Value for Vec<T>
where T: Value,

source§

fn stream(&self, stream: &mut Stream<'_>) -> Result<(), Error>

source§

impl<T, U> Value for (T, U)
where T: Value, U: Value,

source§

fn stream(&self, stream: &mut Stream<'_>) -> Result<(), Error>

Implementors§