pub struct JsonPointerBuf(/* private fields */);Expand description
JSON Pointer buffer.
Implementations§
Source§impl JsonPointerBuf
impl JsonPointerBuf
Sourcepub fn new<B: BytesBuf>(value: B) -> Result<Self, InvalidJsonPointer<B>>
pub fn new<B: BytesBuf>(value: B) -> Result<Self, InvalidJsonPointer<B>>
Converts the given byte string into an owned JSON pointer.
pub fn push(&mut self, token: &str)
pub fn push_index(&mut self, i: usize)
pub fn as_json_pointer(&self) -> &JsonPointer
Methods from Deref<Target = JsonPointer>§
Trait Implementations§
Source§impl AsRef<JsonPointer> for JsonPointerBuf
impl AsRef<JsonPointer> for JsonPointerBuf
Source§fn as_ref(&self) -> &JsonPointer
fn as_ref(&self) -> &JsonPointer
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Borrow<JsonPointer> for JsonPointerBuf
impl Borrow<JsonPointer> for JsonPointerBuf
Source§fn borrow(&self) -> &JsonPointer
fn borrow(&self) -> &JsonPointer
Immutably borrows from an owned value. Read more
Source§impl Clone for JsonPointerBuf
impl Clone for JsonPointerBuf
Source§fn clone(&self) -> JsonPointerBuf
fn clone(&self) -> JsonPointerBuf
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 Debug for JsonPointerBuf
impl Debug for JsonPointerBuf
Source§impl Default for JsonPointerBuf
impl Default for JsonPointerBuf
Source§impl Deref for JsonPointerBuf
impl Deref for JsonPointerBuf
Source§impl<'de> Deserialize<'de> for JsonPointerBuf
impl<'de> Deserialize<'de> for JsonPointerBuf
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 Display for JsonPointerBuf
impl Display for JsonPointerBuf
Source§impl FromStr for JsonPointerBuf
impl FromStr for JsonPointerBuf
Source§impl Hash for JsonPointerBuf
impl Hash for JsonPointerBuf
Source§impl Ord for JsonPointerBuf
impl Ord for JsonPointerBuf
Source§fn cmp(&self, other: &JsonPointerBuf) -> Ordering
fn cmp(&self, other: &JsonPointerBuf) -> 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 PartialEq for JsonPointerBuf
impl PartialEq for JsonPointerBuf
Source§impl PartialOrd for JsonPointerBuf
impl PartialOrd for JsonPointerBuf
Source§impl Serialize for JsonPointerBuf
impl Serialize for JsonPointerBuf
Source§impl TryFrom<String> for JsonPointerBuf
impl TryFrom<String> for JsonPointerBuf
impl Eq for JsonPointerBuf
impl StructuralPartialEq for JsonPointerBuf
Auto Trait Implementations§
impl Freeze for JsonPointerBuf
impl RefUnwindSafe for JsonPointerBuf
impl Send for JsonPointerBuf
impl Sync for JsonPointerBuf
impl Unpin for JsonPointerBuf
impl UnwindSafe for JsonPointerBuf
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