pub struct ValuesRef<'a>(/* private fields */);Expand description
A segment of a value vector borrowed straight from a witness, ready to write.
This is the borrowed end of the format. It relates to the owned counterpart above as a string slice relates to an owned string.
Borrowing is what keeps writing cheap. A witness segment runs to tens of megabytes, and none of it is copied to reach the buffer.
Implementations§
Trait Implementations§
Source§impl SerializeBytes for ValuesRef<'_>
impl SerializeBytes for ValuesRef<'_>
Auto Trait Implementations§
impl<'a> Freeze for ValuesRef<'a>
impl<'a> RefUnwindSafe for ValuesRef<'a>
impl<'a> Send for ValuesRef<'a>
impl<'a> Sync for ValuesRef<'a>
impl<'a> Unpin for ValuesRef<'a>
impl<'a> UnsafeUnpin for ValuesRef<'a>
impl<'a> UnwindSafe for ValuesRef<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more