pub struct Json0 { /* private fields */ }Implementations§
Source§impl Json0
impl Json0
pub fn new() -> Json0
pub fn register_subtype( &self, sub_type: String, o: Box<dyn SubTypeFunctions>, ) -> Result<Option<Box<dyn SubTypeFunctions>>>
pub fn unregister_subtype( &self, sub_type: &String, ) -> Option<Box<dyn SubTypeFunctions>>
pub fn clear_registered_subtype(&self)
pub fn operation_factory(&self) -> &OperationFactory
pub fn apply(&self, value: &mut Value, operations: Vec<Operation>) -> Result<()>
pub fn get_by_path<'a>( &self, value: &'a mut Value, paths: &Path, ) -> Result<Option<&'a Value>>
pub fn transform( &self, operation: &Operation, base_operation: &Operation, ) -> Result<(Operation, Operation)>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Json0
impl !RefUnwindSafe for Json0
impl !Send for Json0
impl !Sync for Json0
impl Unpin for Json0
impl !UnwindSafe for Json0
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more