Trait cryiorust::frame::Frame[][src]

pub trait Frame: Sync + Send {
Show 25 methods fn array(&self) -> &Array;
fn header(&self) -> &Header;
fn header_mut(&mut self) -> &mut Header;
fn array_mut(&mut self) -> &mut Array;
fn set_array(&mut self, array: Array);
fn consume_array(self: Box<Self>) -> Array;
fn take_array(&mut self) -> Array; fn next_frame(&mut self) -> FrameResult<usize> { ... }
fn total_frames(&self) -> usize { ... }
fn current_frame(&self) -> usize { ... }
fn is_multi(&self) -> bool { ... }
fn sum(&self) -> f64 { ... }
fn min(&self) -> f64 { ... }
fn max(&self) -> f64 { ... }
fn dim1(&self) -> usize { ... }
fn dim2(&self) -> usize { ... }
fn get_header_i64(&self, key: &str) -> FrameResult<i64> { ... }
fn get_header_str_or_empty(&self, key: &str) -> &str { ... }
fn get_header_float(&self, key: &str) -> f64 { ... }
fn get_header_str(&self, key: &str) -> FrameResult<&str> { ... }
fn get_header_float_as_string_or_empty(
        &self,
        key: &str,
        exp: bool
    ) -> String { ... }
fn get_header_int_as_string_or_empty(&self, key: &str) -> String { ... }
fn get_header_str_as_i64(&self, key: &str) -> FrameResult<i64> { ... }
fn insert(&mut self, key: String, value: HeaderEntry) { ... }
fn swap_dims(&mut self) { ... }
}
Expand description

Main trait which implemented by all the crate frame structures for dynamic dispatching.

Required methods

Reimplemented method returning a reference of the Array.

Reimplemented method returning a reference of the Header.

Reimplemented method returning a mutable reference of the Header.

Reimplemented method returning a mutable reference of the Array.

Reimplemented method which changes Array in the Frame.

Reimplemented method which returns Array consuming the Frame.

Reimplemented method which returns Array consuming the Frame.

Provided methods

Switches Frame to the next sub-frame.

Returns total number of sub-frames.

Returns the current frame number.

Checks whether this Frame contains sub-frames.

Returns the sum of the Frame’s Array.

Returns the minimum value of the Frame’s Array.

Returns the maximum value of the Frame’s Array.

Returns the first dimension of the Frame’s Array.

Returns the second dimension of the Frame’s Array.

Returns an i64 value from the Frame’s Header.

Returns an &str value from the Frame’s Header or empty &str if the key does not exist.

Returns an f64 value from the Frame’s Header or zero if the key does not exist.

Returns an &str value from the Frame’s Header.

Returns a String value from the Frame’s Header. The String is empty if the key does not exist.

Inserts a HeaderEntry value into the Frame’s Header with a String as key.

Swaps dims of the Frame’s Array.

Trait Implementations

The returned type after indexing.

Performs the indexing (container[index]) operation. Read more

Performs the mutable indexing (container[index]) operation. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Implementors