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>;
}

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>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§