pub struct Unversioned<'buf> { /* private fields */ }Expand description
A json::Element that has been parsed by the either the parse_with_version or parse functions
and was determined to not be one of the supported Versions.
Implementations§
Source§impl<'buf> Unversioned<'buf>
impl<'buf> Unversioned<'buf>
Sourcepub fn into_element(self) -> Element<'buf>
pub fn into_element(self) -> Element<'buf>
Return the inner json::Element and discard the version info.
Sourcepub fn as_element(&self) -> &Element<'buf>
pub fn as_element(&self) -> &Element<'buf>
Return the inner json::Element and discard the version info.
Sourcepub fn as_json_str(&self) -> &'buf str
pub fn as_json_str(&self) -> &'buf str
Return the inner JSON &str and discard the version info.
Trait Implementations§
Source§impl<'buf> Debug for Unversioned<'buf>
impl<'buf> Debug for Unversioned<'buf>
Source§impl<'buf> Unversioned for Unversioned<'buf>
impl<'buf> Unversioned for Unversioned<'buf>
Auto Trait Implementations§
impl<'buf> Freeze for Unversioned<'buf>
impl<'buf> RefUnwindSafe for Unversioned<'buf>
impl<'buf> !Send for Unversioned<'buf>
impl<'buf> !Sync for Unversioned<'buf>
impl<'buf> Unpin for Unversioned<'buf>
impl<'buf> UnwindSafe for Unversioned<'buf>
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more