pub enum Value {
Plain(Val),
ReadView(ObjView),
WriteView(ObjView),
}Variants§
Implementations§
Source§impl Value
impl Value
pub fn if_obj(&self) -> Result<&ObjView, ValueError>
pub fn if_map(&self) -> Result<&MapView, ValueError>
pub fn if_list(&self) -> Result<&ListView, ValueError>
pub fn if_text(&self) -> Result<&TextView, ValueError>
pub fn if_mut_obj(&mut self) -> Result<&mut ObjView, ValueError>
pub fn if_map_mut(&mut self) -> Result<&mut MapView, ValueError>
pub fn if_list_mut(&mut self) -> Result<&mut ListView, ValueError>
pub fn if_text_mut(&mut self) -> Result<&mut TextView, ValueError>
pub fn if_plain(&self) -> Result<&Val, ValueError>
pub fn val_to_litl(&self) -> Val
pub fn to_litl_or_ref(&self) -> Val
pub fn obj_id(&self) -> Option<ObjID>
Trait Implementations§
impl Eq for Value
impl StructuralPartialEq for Value
Auto Trait Implementations§
impl Freeze for Value
impl !RefUnwindSafe for Value
impl !Send for Value
impl !Sync for Value
impl Unpin for Value
impl !UnwindSafe for Value
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