[−][src]Struct hdf5::Filters
HDF5 filters and compression options.
Implementations
impl Filters
[src]
pub fn new() -> Self
[src]
pub fn gzip(&mut self, level: u8) -> &mut Self
[src]
Enable gzip compression with a specified level (0-9).
pub fn no_gzip(&mut self) -> &mut Self
[src]
Disable gzip compression.
pub fn get_gzip(&self) -> Option<u8>
[src]
Get the current settings for gzip filter.
pub fn szip(&mut self, nn: bool, level: u8) -> &mut Self
[src]
Enable szip compression with a specified method (EC, NN) and level (0-32).
If nn
if set to true
(default), the nearest neighbor method is used, otherwise
the method is set to entropy coding.
pub fn no_szip(&mut self) -> &mut Self
[src]
Disable szip compression.
pub fn get_szip(&self) -> Option<(bool, u8)>
[src]
Get the current settings for szip filter.
Returns a tuple (nn, level)
, where nn
indicates whether the nearest neighbor
method is used and level
is the associated compression level.
pub fn shuffle(&mut self, shuffle: bool) -> &mut Self
[src]
Enable or disable shuffle filter.
pub fn get_shuffle(&self) -> bool
[src]
Get the current settings for shuffle filter.
pub fn fletcher32(&mut self, fletcher32: bool) -> &mut Self
[src]
Enable or disable fletcher32 filter.
pub fn get_fletcher32(&self) -> bool
[src]
Get the current settings for fletcher32 filter.
pub fn scale_offset(&mut self, scale_offset: u32) -> &mut Self
[src]
Enable scale-offset filter with a specified factor (0 means automatic).
pub fn no_scale_offset(&mut self) -> &mut Self
[src]
Disable scale-offset compression.
pub fn get_scale_offset(&self) -> Option<u32>
[src]
Get the current settings for scale-offset filter.
pub fn gzip_default(&mut self) -> &mut Self
[src]
Enable gzip filter with default settings (compression level 4).
pub fn szip_default(&mut self) -> &mut Self
[src]
Enable szip filter with default settings (NN method, compression level 8).
pub fn has_filters(&self) -> bool
[src]
Returns true
if any filters are enabled and thus chunkins is required.
pub fn validate(&self) -> Result<()>
[src]
Verify whether the filters configuration is valid.
Trait Implementations
impl Clone for Filters
[src]
impl Debug for Filters
[src]
impl Default for Filters
[src]
impl PartialEq<Filters> for Filters
[src]
impl StructuralPartialEq for Filters
[src]
Auto Trait Implementations
impl RefUnwindSafe for Filters
impl Send for Filters
impl Sync for Filters
impl Unpin for Filters
impl UnwindSafe for Filters
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,