pub struct Unversioned<'buf> { /* private fields */ }Expand description
A json::Document that has been processed by infer_version and has been identified
as being a concrete [Version].
Implementations§
Source§impl<'buf> Unversioned<'buf>
impl<'buf> Unversioned<'buf>
Sourcepub fn into_doc(self) -> Document<'buf>
pub fn into_doc(self) -> Document<'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.
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>
Source§type Versioned = VersionedJson<'buf>
type Versioned = VersionedJson<'buf>
The concrete
Versioned type.Source§fn force_into_versioned(self, version: Version) -> VersionedJson<'buf>
fn force_into_versioned(self, version: Version) -> VersionedJson<'buf>
Auto Trait Implementations§
impl<'buf> !Send for Unversioned<'buf>
impl<'buf> !Sync for Unversioned<'buf>
impl<'buf> Freeze for Unversioned<'buf>
impl<'buf> RefUnwindSafe for Unversioned<'buf>
impl<'buf> Unpin for Unversioned<'buf>
impl<'buf> UnsafeUnpin for Unversioned<'buf>
impl<'buf> UnwindSafe for Unversioned<'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