pub struct Ctx {
pub base: usize,
pub unicode: bool,
}Expand description
Context threaded through encode/decode calls.
Carries information that affects how individual fields are interpreted: Unicode string mode, absolute frame offsets (for parity), dialect.
Fields§
§base: usizeAbsolute frame offset corresponding to the start of the buffer being decoded. Used for Unicode parity alignment.
unicode: boolStrings are UTF-16LE when set, otherwise OEM/ASCII.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Ctx
impl RefUnwindSafe for Ctx
impl Send for Ctx
impl Sync for Ctx
impl Unpin for Ctx
impl UnsafeUnpin for Ctx
impl UnwindSafe for Ctx
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