Trait SunspecModels

Source
pub trait SunspecModels {
Show 25 methods // Required methods fn new(model_number: u16) -> Self; fn new_blocks(model_number: u16, number: u16) -> Self; fn update_data(&mut self, point: &str, value: &DataTypes); fn update_data_by_index(&mut self, index: usize, value: &DataTypes); fn get_data(&self, point: &str) -> DataTypes; fn get_data_index(&self, point: &str) -> Option<usize>; fn get_string(&self, point: &str) -> Option<String>; fn get_string_by_index(&self, idx: usize) -> Option<String>; fn get_f32(&self, point: &str) -> Option<f32>; fn get_f32_by_index(&self, idx: usize) -> Option<f32>; fn get_u16(&self, point: &str) -> Option<u16>; fn get_u16_by_index(&self, idx: usize) -> Option<u16>; fn get_u32(&self, point: &str) -> Option<u32>; fn get_u32_by_index(&self, idx: usize) -> Option<u32>; fn get_u64(&self, point: &str) -> Option<u64>; fn get_u64_by_index(&self, idx: usize) -> Option<u64>; fn get_u128(&self, point: &str) -> Option<u128>; fn get_u128_by_index(&self, idx: usize) -> Option<u128>; fn get_i16(&self, point: &str) -> Option<i16>; fn get_i16_by_index(&self, idx: usize) -> Option<i16>; fn get_i32(&self, point: &str) -> Option<i32>; fn get_i32_by_index(&self, idx: usize) -> Option<i32>; fn get_i64(&self, point: &str) -> Option<i64>; fn get_i64_by_index(&self, idx: usize) -> Option<i64>; fn print(&self);
}

Required Methods§

Source

fn new(model_number: u16) -> Self

Source

fn new_blocks(model_number: u16, number: u16) -> Self

Source

fn update_data(&mut self, point: &str, value: &DataTypes)

Source

fn update_data_by_index(&mut self, index: usize, value: &DataTypes)

Source

fn get_data(&self, point: &str) -> DataTypes

Source

fn get_data_index(&self, point: &str) -> Option<usize>

Source

fn get_string(&self, point: &str) -> Option<String>

Source

fn get_string_by_index(&self, idx: usize) -> Option<String>

Source

fn get_f32(&self, point: &str) -> Option<f32>

Source

fn get_f32_by_index(&self, idx: usize) -> Option<f32>

Source

fn get_u16(&self, point: &str) -> Option<u16>

Source

fn get_u16_by_index(&self, idx: usize) -> Option<u16>

Source

fn get_u32(&self, point: &str) -> Option<u32>

Source

fn get_u32_by_index(&self, idx: usize) -> Option<u32>

Source

fn get_u64(&self, point: &str) -> Option<u64>

Source

fn get_u64_by_index(&self, idx: usize) -> Option<u64>

Source

fn get_u128(&self, point: &str) -> Option<u128>

Source

fn get_u128_by_index(&self, idx: usize) -> Option<u128>

Source

fn get_i16(&self, point: &str) -> Option<i16>

Source

fn get_i16_by_index(&self, idx: usize) -> Option<i16>

Source

fn get_i32(&self, point: &str) -> Option<i32>

Source

fn get_i32_by_index(&self, idx: usize) -> Option<i32>

Source

fn get_i64(&self, point: &str) -> Option<i64>

Source

fn get_i64_by_index(&self, idx: usize) -> Option<i64>

Source

fn print(&self)

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§