pub enum ObjView {
List(ListView),
Text(TextView),
Map(MapView),
}Variants§
Implementations§
Source§impl ObjView
impl ObjView
pub fn to_litl(&self) -> Val
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_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>
Trait Implementations§
impl Eq for ObjView
impl StructuralPartialEq for ObjView
Auto Trait Implementations§
impl Freeze for ObjView
impl !RefUnwindSafe for ObjView
impl !Send for ObjView
impl !Sync for ObjView
impl Unpin for ObjView
impl !UnwindSafe for ObjView
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