#[repr(C)]pub struct TgmEncodeMaskOptions {
pub allow_nan: bool,
pub allow_inf: bool,
pub nan_mask_method: *const c_char,
pub pos_inf_mask_method: *const c_char,
pub neg_inf_mask_method: *const c_char,
pub small_mask_threshold_bytes: isize,
}Expand description
Mask-companion options for encode entry points (see
plans/WIRE_FORMAT.md §6.5 and docs/src/guide/nan-inf-handling.md).
Pass a pointer to this struct to opt into NaN / ±Inf substitution
with bitmask companion frames.
Each *_mask_method string is one of "none", "rle",
"roaring", "lz4", "zstd", or "blosc2"; pass NULL to use
the library default ("roaring"). Unknown names cause the
owning tgm_*_with_options call to return
TgmError::InvalidArg with a clear message via
tgm_last_error.
small_mask_threshold_bytes is the byte-count below which mask
blobs are written as "none" regardless of the requested method
(auto-fallback). Pass 0 to disable the fallback. Negative
values use the library default (128).
Fields§
§allow_nan: bool§allow_inf: bool§nan_mask_method: *const c_char§pos_inf_mask_method: *const c_char§neg_inf_mask_method: *const c_char§small_mask_threshold_bytes: isizeAuto Trait Implementations§
impl Freeze for TgmEncodeMaskOptions
impl RefUnwindSafe for TgmEncodeMaskOptions
impl !Send for TgmEncodeMaskOptions
impl !Sync for TgmEncodeMaskOptions
impl Unpin for TgmEncodeMaskOptions
impl UnsafeUnpin for TgmEncodeMaskOptions
impl UnwindSafe for TgmEncodeMaskOptions
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more