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
fn header_mut(&mut self) -> &mut Header
fn header_mut(&mut self) -> &mut Header
Reimplemented method returning a mutable reference of the Header.
Reimplemented method returning a mutable reference of the Array.
fn consume_array(self: Box<Self>) -> Array
fn consume_array(self: Box<Self>) -> Array
fn take_array(&mut self) -> Array
fn take_array(&mut self) -> Array
Provided methods
fn next_frame(&mut self) -> FrameResult<usize>
fn next_frame(&mut self) -> FrameResult<usize>
Switches Frame to the next sub-frame.
fn total_frames(&self) -> usize
fn total_frames(&self) -> usize
Returns total number of sub-frames.
fn current_frame(&self) -> usize
fn current_frame(&self) -> usize
Returns the current frame number.
fn get_header_i64(&self, key: &str) -> FrameResult<i64>
fn get_header_i64(&self, key: &str) -> FrameResult<i64>
fn get_header_str_or_empty(&self, key: &str) -> &str
fn get_header_str_or_empty(&self, key: &str) -> &str
fn get_header_float(&self, key: &str) -> f64
fn get_header_float(&self, key: &str) -> f64
fn get_header_str(&self, key: &str) -> FrameResult<&str>
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_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 insert(&mut self, key: String, value: HeaderEntry)
Inserts a HeaderEntry value into the Frame’s Header with a String as key.