pub struct Value<'a> { /* private fields */ }Expand description
Saved original field context. The element cannot be rebound to invented encoding/depth or another parser; opening it uses the current operation’s execution while retaining its original source window and origin ceilings.
Implementations§
Source§impl<'a> Value<'a>
impl<'a> Value<'a>
Sourcepub fn element(&self) -> Element<'a>
pub fn element(&self) -> Element<'a>
Whole original field; no content has been joined or re-encoded.
Sourcepub fn reader_scoped_in<'operation, W: Work>(
&self,
operation: &'operation W,
) -> Result<ScopedReader<'a, 'operation>>where
'a: 'operation,
pub fn reader_scoped_in<'operation, W: Work>(
&self,
operation: &'operation W,
) -> Result<ScopedReader<'a, 'operation>>where
'a: 'operation,
Decodes the original field under a short current operation. Parsed values may retain original input borrows without retaining this cursor or its operation; original depth and both source/current ceilings apply.
Sourcepub fn reader_in<'query>(
&self,
operation: &Reader<'query>,
) -> Result<Reader<'query>>where
'a: 'query,
pub fn reader_in<'query>(
&self,
operation: &Reader<'query>,
) -> Result<Reader<'query>>where
'a: 'query,
Opens the original whole field with origin and current query ceilings. A later source switch never replaces the current operation with a broader ancestor or an account detached from that operation.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Value<'a>
impl<'a> !Send for Value<'a>
impl<'a> !Sync for Value<'a>
impl<'a> !UnwindSafe for Value<'a>
impl<'a> Freeze for Value<'a>
impl<'a> Unpin for Value<'a>
impl<'a> UnsafeUnpin for Value<'a>
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