pub enum JsonFragment<'a> {
Value(&'a JsonValue),
Entry(EntryRef<'a>),
Key(&'a Key),
}Variants§
Implementations§
Source§impl<'a> JsonFragment<'a>
impl<'a> JsonFragment<'a>
pub fn is_entry(&self) -> bool
pub fn is_key(&self) -> bool
pub fn is_value(&self) -> bool
pub fn is_null(&self) -> bool
pub fn is_number(&self) -> bool
pub fn is_string(&self) -> bool
pub fn is_array(&self) -> bool
pub fn is_object(&self) -> bool
pub fn strip(self) -> JsonFragment<'a>
Source§impl<'a> JsonFragment<'a>
impl<'a> JsonFragment<'a>
pub fn sub_fragments(&self) -> JsonFragments<'a> ⓘ
Trait Implementations§
Source§impl<'a> Clone for JsonFragment<'a>
impl<'a> Clone for JsonFragment<'a>
impl<'a> Copy for JsonFragment<'a>
Auto Trait Implementations§
impl<'a> Freeze for JsonFragment<'a>
impl<'a> RefUnwindSafe for JsonFragment<'a>
impl<'a> Send for JsonFragment<'a>
impl<'a> Sync for JsonFragment<'a>
impl<'a> Unpin for JsonFragment<'a>
impl<'a> UnsafeUnpin for JsonFragment<'a>
impl<'a> UnwindSafe for JsonFragment<'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