Enum chisel_json::paths::JsonPathComponent
source · pub enum JsonPathComponent<'a> {
Root,
NameSelector(Cow<'a, str>),
WildcardSelector,
IndexSelector(usize),
RangeSelector(usize, usize),
}
Expand description
An enumeration fo various different path components
Variants§
Root
The root element ‘$’
NameSelector(Cow<'a, str>)
A name selector component
WildcardSelector
Wildcard selector
IndexSelector(usize)
Index selector
RangeSelector(usize, usize)
Range selector
Trait Implementations§
source§impl<'a> Clone for JsonPathComponent<'a>
impl<'a> Clone for JsonPathComponent<'a>
source§fn clone(&self) -> JsonPathComponent<'a>
fn clone(&self) -> JsonPathComponent<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> Debug for JsonPathComponent<'a>
impl<'a> Debug for JsonPathComponent<'a>
source§impl<'a> Display for JsonPathComponent<'a>
impl<'a> Display for JsonPathComponent<'a>
source§impl<'a> PartialEq<JsonPathComponent<'a>> for JsonPathComponent<'a>
impl<'a> PartialEq<JsonPathComponent<'a>> for JsonPathComponent<'a>
source§fn eq(&self, other: &JsonPathComponent<'a>) -> bool
fn eq(&self, other: &JsonPathComponent<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'a> StructuralPartialEq for JsonPathComponent<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for JsonPathComponent<'a>
impl<'a> Send for JsonPathComponent<'a>
impl<'a> Sync for JsonPathComponent<'a>
impl<'a> Unpin for JsonPathComponent<'a>
impl<'a> UnwindSafe for JsonPathComponent<'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