pub struct Segment<'p> { /* private fields */ }Expand description
Represents a segment of a pointer
Implementations§
Source§impl<'p> Segment<'p>
impl<'p> Segment<'p>
Sourcepub fn lazy(s: &'p str) -> Self
pub fn lazy(s: &'p str) -> Self
Lazily type the pointer, delaying the declaration until called by the Json deserializer.
Note this allows for processing of all valid Json map keys; however, using this type can also deserialize Json arrays if the key is is parsable as a number.
If you need strongly typed pointers see the key and
index methods.
Trait Implementations§
impl<'p> Copy for Segment<'p>
Auto Trait Implementations§
impl<'p> Freeze for Segment<'p>
impl<'p> RefUnwindSafe for Segment<'p>
impl<'p> Send for Segment<'p>
impl<'p> Sync for Segment<'p>
impl<'p> Unpin for Segment<'p>
impl<'p> UnsafeUnpin for Segment<'p>
impl<'p> UnwindSafe for Segment<'p>
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