Skip to main content

GetVariable

Trait GetVariable 

Source
pub trait GetVariable {
    // Required methods
    fn get_variable<T: NcType>(
        &self,
        name: &str,
        len: usize,
    ) -> Result<Vec<T>, NulError>;
    fn try_get_variable<T: NcType>(
        &self,
        name: &str,
        len: usize,
    ) -> Result<Option<Vec<T>>, NulError>;
    fn get_variable_slice<T: NcType>(
        &self,
        name: &str,
        start: &[usize],
        count: &[usize],
    ) -> Result<Vec<T>, NulError>;
}

Required Methods§

Source

fn get_variable<T: NcType>( &self, name: &str, len: usize, ) -> Result<Vec<T>, NulError>

Source

fn try_get_variable<T: NcType>( &self, name: &str, len: usize, ) -> Result<Option<Vec<T>>, NulError>

Source

fn get_variable_slice<T: NcType>( &self, name: &str, start: &[usize], count: &[usize], ) -> Result<Vec<T>, NulError>

Read the hyperslab start .. start + count (element coordinates, one entry per dimension) of a variable, decompressing only the chunks it touches.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§