Enum json_syntax::FragmentRef
source · pub enum FragmentRef<'a, M> {
Value(&'a Meta<Value<M>, M>),
Entry(&'a Entry<M>),
Key(&'a Meta<Key, M>),
}
Variants§
Implementations§
source§impl<'a, M> FragmentRef<'a, M>
impl<'a, M> FragmentRef<'a, M>
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) -> StrippedFragmentRef<'a, M>
source§impl<'a, M> FragmentRef<'a, M>
impl<'a, M> FragmentRef<'a, M>
pub fn sub_fragments(&self) -> SubFragments<'a, M> ⓘ
Trait Implementations§
source§impl<'a, M> Clone for FragmentRef<'a, M>
impl<'a, M> Clone for FragmentRef<'a, M>
source§impl<'a, M> Strip for FragmentRef<'a, M>
impl<'a, M> Strip for FragmentRef<'a, M>
impl<'a, M> Copy for FragmentRef<'a, M>
Auto Trait Implementations§
impl<'a, M> RefUnwindSafe for FragmentRef<'a, M>where M: RefUnwindSafe,
impl<'a, M> Send for FragmentRef<'a, M>where M: Sync,
impl<'a, M> Sync for FragmentRef<'a, M>where M: Sync,
impl<'a, M> Unpin for FragmentRef<'a, M>
impl<'a, M> UnwindSafe for FragmentRef<'a, M>where M: RefUnwindSafe,
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