Struct jsonpath_plus::ast::StepRange
source · [−]pub struct StepRange { /* private fields */ }
Expand description
A range for selecting keys from an array from a start to an end key, with an extra parameter to select every Nth key
Implementations
sourceimpl StepRange
impl StepRange
sourcepub fn step_lit(&self) -> Option<&NonZeroIntLit>
pub fn step_lit(&self) -> Option<&NonZeroIntLit>
Get the step literal token for this range
sourcepub fn step(&self) -> Option<NonZeroI64>
pub fn step(&self) -> Option<NonZeroI64>
Get the user-provided step value for this range
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for StepRange
impl Send for StepRange
impl Sync for StepRange
impl Unpin for StepRange
impl UnwindSafe for StepRange
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more