pub struct ProcessedOwned<T, B> {
pub unprocessed: Context,
pub processed: Context<T, B>,
}Expand description
An active context paired with an owned copy of the @context it was built
from.
Borrows nothing, so it can be stored or returned past the lifetime of the
document the @context was read from.
Fields§
§unprocessed: ContextThe context as it was written.
processed: Context<T, B>The active context it processed into.
Implementations§
Source§impl<T, B> ProcessedOwned<T, B>
impl<T, B> ProcessedOwned<T, B>
Sourcepub fn new(unprocessed: Context, processed: Context<T, B>) -> Self
pub fn new(unprocessed: Context, processed: Context<T, B>) -> Self
Pairs an active context with an owned copy of the @context it was built
from.
Sourcepub fn unprocessed(&self) -> &Context
pub fn unprocessed(&self) -> &Context
Returns the @context as it was written, before processing.
Sourcepub fn as_ref(&self) -> ProcessedRef<'_, '_, T, B>
pub fn as_ref(&self) -> ProcessedRef<'_, '_, T, B>
Borrows both halves as a ProcessedRef.
Auto Trait Implementations§
impl<T, B> !RefUnwindSafe for ProcessedOwned<T, B>
impl<T, B> !UnwindSafe for ProcessedOwned<T, B>
impl<T, B> Freeze for ProcessedOwned<T, B>
impl<T, B> Send for ProcessedOwned<T, B>
impl<T, B> Sync for ProcessedOwned<T, B>
impl<T, B> Unpin for ProcessedOwned<T, B>
impl<T, B> UnsafeUnpin for ProcessedOwned<T, B>where
Context<T, B>: UnsafeUnpin,
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
Source§impl<T> BorrowUnordered for T
impl<T> BorrowUnordered for T
Source§fn as_unordered(&self) -> &Unordered<T>
fn as_unordered(&self) -> &Unordered<T>
Views this value as an
Unordered reference.