pub enum LensValue<'a> {
Bool(bool),
Null,
Number(usize),
String(&'a str),
}
Expand description
Lens value type.
Variants§
Bool(bool)
Variant for a JSON boolean.
Null
Variant for JSON null.
Number(usize)
Variant for a JSON number.
String(&'a str)
Variant for a JSON string.
Trait Implementations§
impl<'a> Eq for LensValue<'a>
impl<'a> StructuralPartialEq for LensValue<'a>
Auto Trait Implementations§
impl<'a> Freeze for LensValue<'a>
impl<'a> RefUnwindSafe for LensValue<'a>
impl<'a> Send for LensValue<'a>
impl<'a> Sync for LensValue<'a>
impl<'a> Unpin for LensValue<'a>
impl<'a> UnwindSafe for LensValue<'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