pub enum SourceStr<'buf> {
Value(RawStr<'buf>),
Field {
field: RawStr<'buf>,
key: &'buf str,
value: &'buf str,
},
}
Variants§
Value(RawStr<'buf>)
The source &str
of the given [Value
].
Field
The key-value pair of the given Element
where the [PathNode
] is an referring to an object.
Trait Implementations§
Source§impl PartialEq<&str> for SourceStr<'_>
The SourceStr
can be compared with other strings just like a String
.
impl PartialEq<&str> for SourceStr<'_>
The SourceStr
can be compared with other strings just like a String
.
Auto Trait Implementations§
impl<'buf> Freeze for SourceStr<'buf>
impl<'buf> RefUnwindSafe for SourceStr<'buf>
impl<'buf> Send for SourceStr<'buf>
impl<'buf> Sync for SourceStr<'buf>
impl<'buf> Unpin for SourceStr<'buf>
impl<'buf> UnwindSafe for SourceStr<'buf>
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