Enum MutValue
pub enum MutValue<'a> {
Num(&'a mut u64),
Bytes(&'a mut [u8]),
}
Expand description
A value that stores mutable references to the underlying data.
Variants§
Implementations§
§impl MutValue<'_>
impl MutValue<'_>
pub fn fill_le_from_value(
&mut self,
num_bytes_in_value: usize,
value: &Value<'_>,
)
pub fn fill_le_from_value( &mut self, num_bytes_in_value: usize, value: &Value<'_>, )
Treats the value as a little-endian number, and fills it from value
.
pub fn fill_be_from_value(&mut self, value: &Value<'_>)
pub fn fill_be_from_value(&mut self, value: &Value<'_>)
Treats the value as a big-endian number, and fills it from value
.
Trait Implementations§
impl<'a> Eq for MutValue<'a>
impl<'a> StructuralPartialEq for MutValue<'a>
Auto Trait Implementations§
impl<'a> Freeze for MutValue<'a>
impl<'a> RefUnwindSafe for MutValue<'a>
impl<'a> Send for MutValue<'a>
impl<'a> Sync for MutValue<'a>
impl<'a> Unpin for MutValue<'a>
impl<'a> !UnwindSafe for MutValue<'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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
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