pub struct PathPointer {
pub components: Vec<PathPointerComponent>,
}
Fields§
§components: Vec<PathPointerComponent>
Implementations§
Source§impl PathPointer
impl PathPointer
pub fn new<S: Into<String>, C: Into<DiffResultType>>( context: C, path: Option<S>, scope: Option<PathPointerScope>, ) -> Self
pub fn add<S: Into<String>, C: Into<DiffResultType>>( &self, context: C, path: S, scope: Option<PathPointerScope>, ) -> Self
pub fn add_context<C: Into<DiffResultType>>(&self, context: C) -> Self
pub fn add_component<S: Into<String>, C: Into<DiffResultType>>( &self, context: C, path: Option<S>, scope: Option<PathPointerScope>, ) -> Self
pub fn get(&self, scope: PathPointerScope) -> Option<&PathPointerComponent>
pub fn is_in(&self, scope: PathPointerScope) -> bool
pub fn this(&self) -> DiffResultType
pub fn parent(&self) -> DiffResultType
pub fn ancestor(&self, ancestor: PointerAncestor) -> DiffResultType
pub fn is_same(&self) -> bool
pub fn is_added(&self) -> bool
pub fn is_updated(&self) -> bool
pub fn is_upserted(&self) -> bool
pub fn is_removed(&self) -> bool
pub fn get_path(&self) -> String
pub fn startswith(&self, value: &PathPointer) -> bool
pub fn matches(&self, value: &str) -> bool
Trait Implementations§
Source§impl Clone for PathPointer
impl Clone for PathPointer
Source§fn clone(&self) -> PathPointer
fn clone(&self) -> PathPointer
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 Debug for PathPointer
impl Debug for PathPointer
Source§impl PartialEq for PathPointer
impl PartialEq for PathPointer
impl StructuralPartialEq for PathPointer
Auto Trait Implementations§
impl Freeze for PathPointer
impl RefUnwindSafe for PathPointer
impl Send for PathPointer
impl Sync for PathPointer
impl Unpin for PathPointer
impl UnwindSafe for PathPointer
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