pub struct WriteCx<'a> {
pub cx: &'a mut Cx,
pub codec: CodecId,
pub options: EncodeOptions,
}Expand description
The mutable context passed to an encoder while it renders a form.
Fields§
§cx: &'a mut CxThe runtime context.
codec: CodecIdThe codec performing the encode.
options: EncodeOptionsThe active encode options.
Implementations§
Source§impl<'a> WriteCx<'a>
impl<'a> WriteCx<'a>
Sourcepub fn with_position<'b>(&'b mut self, position: EncodePosition) -> WriteCx<'b>
pub fn with_position<'b>(&'b mut self, position: EncodePosition) -> WriteCx<'b>
Reborrows this context with the encode position overridden.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for WriteCx<'a>
impl<'a> !UnwindSafe for WriteCx<'a>
impl<'a> Freeze for WriteCx<'a>
impl<'a> Send for WriteCx<'a>
impl<'a> Sync for WriteCx<'a>
impl<'a> Unpin for WriteCx<'a>
impl<'a> UnsafeUnpin for WriteCx<'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