[][src]Trait netcdf::variable::Numeric

pub trait Numeric {
    fn from_variable(variable: &Variable) -> Result<Vec<Self>, String>
    where
        Self: Sized
;
fn read_variable_into_buffer(
        variable: &Variable,
        buffer: &mut Vec<Self>
    ) -> Result<(), String>
    where
        Self: Sized
;
fn read_slice_into_buffer(
        variable: &Variable,
        indices: &[usize],
        slice_len: &[usize],
        buffer: &mut Vec<Self>
    ) -> Result<(), String>
    where
        Self: Sized
;
fn slice_from_variable(
        variable: &Variable,
        indices: &[usize],
        slice_len: &[usize]
    ) -> Result<Vec<Self>, String>
    where
        Self: Sized
;
fn single_value_from_variable(
        variable: &Variable,
        indices: &[usize]
    ) -> Result<Self, String>
    where
        Self: Sized
;
fn put_value_at(
        variable: &mut Variable,
        indices: &[usize],
        value: Self
    ) -> Result<(), String>
    where
        Self: Sized
;
fn put_values_at(
        variable: &mut Variable,
        indices: &[usize],
        slice_len: &[usize],
        values: &[Self]
    ) -> Result<(), String>
    where
        Self: Sized
;
fn as_void_ptr(&self) -> *const c_void; }

This trait allow an implicit cast when fetching a netCDF variable

Required Methods

Returns the whole variable as Vec

Read the variable into a buffer and update its length.

Read a slice of a variable into a buffer and update its length.

Returns a slice of the variable as Vec

Returns a single indexed value of the variable as Self

Put a single value into a netCDF variable

put a SLICE of values into a netCDF variable at the given index

Returns self as a C (void *) pointer

Implementations on Foreign Types

impl Numeric for u8
[src]

impl Numeric for i8
[src]

impl Numeric for i16
[src]

impl Numeric for u16
[src]

impl Numeric for i32
[src]

impl Numeric for u32
[src]

impl Numeric for i64
[src]

impl Numeric for u64
[src]

impl Numeric for f32
[src]

impl Numeric for f64
[src]

Implementors