pub struct WriteCtx<'a> {
pub endian: Endian,
pub ref_types: RefTypes<'a>,
pub rules: WriteRules,
pub limits: &'a Limits,
}Expand description
What the writer needs besides the value and the tree.
Fields§
§endian: EndianThe file’s byte order.
ref_types: RefTypes<'a>For ReferencedObject data.
rules: WriteRulesAlignment rules.
limits: &'a LimitsThe depth and values bounds (max_value_depth,
max_values_per_object).
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for WriteCtx<'a>
impl<'a> !UnwindSafe for WriteCtx<'a>
impl<'a> Forget for WriteCtx<'a>
impl<'a> Freeze for WriteCtx<'a>
impl<'a> Move for WriteCtx<'a>
impl<'a> Send for WriteCtx<'a>
impl<'a> Sync for WriteCtx<'a>
impl<'a> Unpin for WriteCtx<'a>
impl<'a> UnsafeUnpin for WriteCtx<'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