#[non_exhaustive]pub struct InspectOptions {
pub compute_value_range: bool,
}Expand description
Controls optional work performed while inspecting a blob.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.compute_value_range: boolWhether Lerc1 blocks are decoded far enough to compute their exact value range.
Implementations§
Source§impl InspectOptions
impl InspectOptions
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates options that preserve the exact-range behavior of inspect_first.
Sourcepub const fn with_compute_value_range(self, compute_value_range: bool) -> Self
pub const fn with_compute_value_range(self, compute_value_range: bool) -> Self
Enables or disables exact Lerc1 value-range computation.
Trait Implementations§
Source§impl Clone for InspectOptions
impl Clone for InspectOptions
Source§fn clone(&self) -> InspectOptions
fn clone(&self) -> InspectOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for InspectOptions
Source§impl Debug for InspectOptions
impl Debug for InspectOptions
Source§impl Default for InspectOptions
impl Default for InspectOptions
impl Eq for InspectOptions
Source§impl PartialEq for InspectOptions
impl PartialEq for InspectOptions
impl StructuralPartialEq for InspectOptions
Auto Trait Implementations§
impl Freeze for InspectOptions
impl RefUnwindSafe for InspectOptions
impl Send for InspectOptions
impl Sync for InspectOptions
impl Unpin for InspectOptions
impl UnsafeUnpin for InspectOptions
impl UnwindSafe for InspectOptions
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