pub enum ValueRefMut<'a> {
Float(&'a mut f64),
Int(&'a mut i64),
Bool(&'a mut bool),
String(&'a mut Str),
Map(&'a mut Map),
Array(&'a mut Array),
None,
}Expand description
A mutable borrowed reference to a Value.
This enum provides write‑access to the data stored inside a Value
via mutable references (&'a mut …). It mirrors the variants of
Value but allows the underlying data to be modified in place.
§Variants
Float(&'a mut f64)– Mutable reference to a floating‑point number.Int(&'a mut i64)– Mutable reference to an integer.Bool(&'a mut bool)– Mutable reference to a boolean.String(&'a mut Str)– Mutable reference to a string.Map(&'a mut Map)– Mutable reference to a map container.Array(&'a mut Array)– Mutable reference to an array container.None– Represents the absence of a value.
Variants§
Float(&'a mut f64)
Mutable reference to a floating‑point number.
Int(&'a mut i64)
Mutable reference to an integer.
Bool(&'a mut bool)
Mutable reference to a boolean.
String(&'a mut Str)
Mutable reference to a string.
Map(&'a mut Map)
Mutable reference to a map.
Array(&'a mut Array)
Mutable reference to an array.
None
No value.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ValueRefMut<'a>
impl<'a> RefUnwindSafe for ValueRefMut<'a>
impl<'a> Send for ValueRefMut<'a>
impl<'a> Sync for ValueRefMut<'a>
impl<'a> Unpin for ValueRefMut<'a>
impl<'a> !UnwindSafe for ValueRefMut<'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