pub struct JsonPointer<P: Property>(/* private fields */);
Implementations§
Source§impl<P: Property> JsonPointer<P>
impl<P: Property> JsonPointer<P>
pub fn iter(&self) -> JsonPointerIter<'_, P>
pub fn into_iter(self) -> impl Iterator<Item = JsonPointerItem<P>>
pub fn into_inner(self) -> Vec<JsonPointerItem<P>>
pub fn encode<I, T>(items: I) -> String
pub fn first(&self) -> Option<&JsonPointerItem<P>>
pub fn last(&self) -> Option<&JsonPointerItem<P>>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn as_slice(&self) -> &[JsonPointerItem<P>]
pub fn as_mut_slice(&mut self) -> &mut [JsonPointerItem<P>]
Trait Implementations§
Source§impl<P: Clone + Property> Clone for JsonPointer<P>
impl<P: Clone + Property> Clone for JsonPointer<P>
Source§fn clone(&self) -> JsonPointer<P>
fn clone(&self) -> JsonPointer<P>
Returns a duplicate 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<'de, P: Property> Deserialize<'de> for JsonPointer<P>
impl<'de, P: Property> Deserialize<'de> for JsonPointer<P>
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<P: Property> Display for JsonPointer<P>
impl<P: Property> Display for JsonPointer<P>
Source§impl<P: Ord + Property> Ord for JsonPointer<P>
impl<P: Ord + Property> Ord for JsonPointer<P>
Source§fn cmp(&self, other: &JsonPointer<P>) -> Ordering
fn cmp(&self, other: &JsonPointer<P>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<P: PartialOrd + Property> PartialOrd for JsonPointer<P>
impl<P: PartialOrd + Property> PartialOrd for JsonPointer<P>
Source§impl<P: Property> Serialize for JsonPointer<P>
impl<P: Property> Serialize for JsonPointer<P>
impl<P: Eq + Property> Eq for JsonPointer<P>
impl<P: Property> StructuralPartialEq for JsonPointer<P>
Auto Trait Implementations§
impl<P> Freeze for JsonPointer<P>
impl<P> RefUnwindSafe for JsonPointer<P>where
P: RefUnwindSafe,
impl<P> Send for JsonPointer<P>where
P: Send,
impl<P> Sync for JsonPointer<P>where
P: Sync,
impl<P> Unpin for JsonPointer<P>where
P: Unpin,
impl<P> UnwindSafe for JsonPointer<P>where
P: UnwindSafe,
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