pub struct ObjectLocation { /* private fields */ }Implementations§
Source§impl ObjectLocation
impl ObjectLocation
pub fn root() -> Self
pub fn hash_root(member: impl Into<String>) -> Self
pub fn array_root(index: usize) -> Self
pub fn member(self, member: impl Into<String>) -> Self
pub fn element(self, index: usize) -> Self
pub fn is_root(&self) -> bool
pub fn level(&self) -> usize
Trait Implementations§
Source§impl Clone for ObjectLocation
impl Clone for ObjectLocation
Source§fn clone(&self) -> ObjectLocation
fn clone(&self) -> ObjectLocation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ObjectLocation
impl Debug for ObjectLocation
Source§impl Default for ObjectLocation
impl Default for ObjectLocation
Source§fn default() -> ObjectLocation
fn default() -> ObjectLocation
Returns the “default value” for a type. Read more
Source§impl Display for ObjectLocation
impl Display for ObjectLocation
impl Eq for ObjectLocation
Source§impl PartialEq for ObjectLocation
impl PartialEq for ObjectLocation
Source§fn eq(&self, other: &ObjectLocation) -> bool
fn eq(&self, other: &ObjectLocation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ObjectLocation
Auto Trait Implementations§
impl Freeze for ObjectLocation
impl RefUnwindSafe for ObjectLocation
impl Send for ObjectLocation
impl Sync for ObjectLocation
impl Unpin for ObjectLocation
impl UnsafeUnpin for ObjectLocation
impl UnwindSafe for ObjectLocation
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