Struct jsonpath_lib::SelectorMut
source · pub struct SelectorMut { /* private fields */ }
👎Deprecated since 0.4.0: Please use
JsonSelectorMut
Implementations§
source§impl SelectorMut
impl SelectorMut
pub fn new() -> Self
pub fn str_path(&mut self, path: &str) -> Result<&mut Self, JsonPathError>
pub fn value(&mut self, value: Value) -> &mut Self
pub fn take(&mut self) -> Option<Value>
pub fn compiled_path(&mut self, node: Node) -> &mut Self
pub fn delete(&mut self) -> Result<&mut Self, JsonPathError>
pub fn remove(&mut self) -> Result<&mut Self, JsonPathError>
pub fn replace_with<F: FnMut(Value) -> Option<Value>>( &mut self, fun: &mut F ) -> Result<&mut Self, JsonPathError>
Trait Implementations§
source§impl Default for SelectorMut
impl Default for SelectorMut
source§fn default() -> SelectorMut
fn default() -> SelectorMut
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for SelectorMut
impl Send for SelectorMut
impl Sync for SelectorMut
impl Unpin for SelectorMut
impl UnwindSafe for SelectorMut
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