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
Value(&'a Meta<Value<M>, M>)
Entry(&'a Entry<M>)
Key(&'a Meta<Key, M>)
Implementations
sourceimpl<'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>
sourceimpl<'a, M> FragmentRef<'a, M>
impl<'a, M> FragmentRef<'a, M>
pub fn sub_fragments(&self) -> SubFragments<'a, M>ⓘNotable traits for SubFragments<'a, M>impl<'a, M> Iterator for SubFragments<'a, M> type Item = FragmentRef<'a, M>;
Trait Implementations
sourceimpl<'a, M> Clone for FragmentRef<'a, M>
impl<'a, M> Clone for FragmentRef<'a, M>
sourceimpl<'a, M> Strip for FragmentRef<'a, M>
impl<'a, M> Strip for FragmentRef<'a, M>
type Stripped = StrippedFragmentRef<'a, M>
fn strip(self) -> Self::Stripped
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more