#[non_exhaustive]pub struct Filter {
pub id: u16,
pub name: Option<String>,
pub is_optional: bool,
pub client_data: Vec<u32>,
}Expand description
One filter in a dataset’s pipeline.
The curated per-filter analogue of H5Pget_filter2. Obtain the ordered
pipeline with Dataset::filter_pipeline;
Dataset::filters stays the lighter call when
only the identifiers are needed.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: u16The registered HDF5 filter identifier, the same numbering returned by
Dataset::filters. Display names the ones
this crate knows, such as 1 = deflate or 32000 = lzf.
name: Option<String>The filter’s recorded name, when the file stores one. Absent for most
built-in filters, which are identified by id alone.
is_optional: boolWhether the filter is optional. When true, a reader that cannot apply
the filter may skip it; a mandatory filter (false) must be applied for
the data to decode correctly.
client_data: Vec<u32>The filter’s client data (cd_values): the auxiliary parameters stored
with it — for deflate, one value, the compression level. The meaning is
filter-specific.
Trait Implementations§
impl Eq for Filter
impl StructuralPartialEq for Filter
Auto Trait Implementations§
impl Freeze for Filter
impl RefUnwindSafe for Filter
impl Send for Filter
impl Sync for Filter
impl Unpin for Filter
impl UnsafeUnpin for Filter
impl UnwindSafe for Filter
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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