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 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 Freeze for SelectorMut
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