pub trait ValueRef<'sval>: Value {
// Required method
fn stream_ref<S: Stream<'sval> + ?Sized>(&self, stream: &mut S) -> Result;
}
Expand description
A producer of structured data that stores a reference internally.
This trait is a variant of Value
for wrapper types that keep a reference to a value internally.
In Value
, the 'sval
lifetime comes from the borrow of &'sval self
. In ValueRef
, it comes
from the 'sval
lifetime in the trait itself.