pub struct RunMod { /* private fields */ }Implementations§
Source§impl RunMod
impl RunMod
Sourcepub fn new(val: RunVar) -> Self
pub fn new(val: RunVar) -> Self
Makes a new RunMod
This method will never panic or fail
§Examples
use runmod::{RunMod, RunVar};
let value = RunMod::new(RunVar::I32(10));Sourcepub fn get_i8(&mut self) -> Option<i8>
pub fn get_i8(&mut self) -> Option<i8>
Reads the source file andf gets a new value. I recommend that you disable autosave on your text editor/IDE (especily if it is high frequency), as this can cause unexpected panics.
This will update every time you call it, witch means it will open the file, read it, parse the line, then close it.
Sourcepub fn get_i16(&mut self) -> Option<i16>
pub fn get_i16(&mut self) -> Option<i16>
Reads the source file andf gets a new value. I recommend that you disable autosave on your text editor/IDE (especily if it is high frequency), as this can cause unexpected panics.
This will update every time you call it, witch means it will open the file, read it, parse the line, then close it.
Sourcepub fn get_i32(&mut self) -> Option<i32>
pub fn get_i32(&mut self) -> Option<i32>
Reads the source file andf gets a new value. I recommend that you disable autosave on your text editor/IDE (especily if it is high frequency), as this can cause unexpected panics.
This will update every time you call it, witch means it will open the file, read it, parse the line, then close it.
Sourcepub fn get_i64(&mut self) -> Option<i64>
pub fn get_i64(&mut self) -> Option<i64>
Reads the source file andf gets a new value. I recommend that you disable autosave on your text editor/IDE (especily if it is high frequency), as this can cause unexpected panics.
This will update every time you call it, witch means it will open the file, read it, parse the line, then close it.
Sourcepub fn get_i128(&mut self) -> Option<i128>
pub fn get_i128(&mut self) -> Option<i128>
Reads the source file andf gets a new value. I recommend that you disable autosave on your text editor/IDE (especily if it is high frequency), as this can cause unexpected panics.
This will update every time you call it, witch means it will open the file, read it, parse the line, then close it.
Sourcepub fn get_isize(&mut self) -> Option<isize>
pub fn get_isize(&mut self) -> Option<isize>
Reads the source file andf gets a new value. I recommend that you disable autosave on your text editor/IDE (especily if it is high frequency), as this can cause unexpected panics.
This will update every time you call it, witch means it will open the file, read it, parse the line, then close it.
Sourcepub fn get_u8(&mut self) -> Option<u8>
pub fn get_u8(&mut self) -> Option<u8>
Reads the source file andf gets a new value. I recommend that you disable autosave on your text editor/IDE (especily if it is high frequency), as this can cause unexpected panics.
This will update every time you call it, witch means it will open the file, read it, parse the line, then close it.
Sourcepub fn get_u16(&mut self) -> Option<u16>
pub fn get_u16(&mut self) -> Option<u16>
Reads the source file andf gets a new value. I recommend that you disable autosave on your text editor/IDE (especily if it is high frequency), as this can cause unexpected panics.
This will update every time you call it, witch means it will open the file, read it, parse the line, then close it.
Sourcepub fn get_u32(&mut self) -> Option<u32>
pub fn get_u32(&mut self) -> Option<u32>
Reads the source file andf gets a new value. I recommend that you disable autosave on your text editor/IDE (especily if it is high frequency), as this can cause unexpected panics.
This will update every time you call it, witch means it will open the file, read it, parse the line, then close it.
Sourcepub fn get_u64(&mut self) -> Option<u64>
pub fn get_u64(&mut self) -> Option<u64>
Reads the source file andf gets a new value. I recommend that you disable autosave on your text editor/IDE (especily if it is high frequency), as this can cause unexpected panics.
This will update every time you call it, witch means it will open the file, read it, parse the line, then close it.
Sourcepub fn get_u128(&mut self) -> Option<u128>
pub fn get_u128(&mut self) -> Option<u128>
Reads the source file andf gets a new value. I recommend that you disable autosave on your text editor/IDE (especily if it is high frequency), as this can cause unexpected panics.
This will update every time you call it, witch means it will open the file, read it, parse the line, then close it.
Sourcepub fn get_usize(&mut self) -> Option<usize>
pub fn get_usize(&mut self) -> Option<usize>
Reads the source file andf gets a new value. I recommend that you disable autosave on your text editor/IDE (especily if it is high frequency), as this can cause unexpected panics.
This will update every time you call it, witch means it will open the file, read it, parse the line, then close it.
Sourcepub fn get_f32(&mut self) -> Option<f32>
pub fn get_f32(&mut self) -> Option<f32>
Reads the source file andf gets a new value. I recommend that you disable autosave on your text editor/IDE (especily if it is high frequency), as this can cause unexpected panics.
This will update every time you call it, witch means it will open the file, read it, parse the line, then close it.
Sourcepub fn get_f64(&mut self) -> Option<f64>
pub fn get_f64(&mut self) -> Option<f64>
Reads the source file andf gets a new value. I recommend that you disable autosave on your text editor/IDE (especily if it is high frequency), as this can cause unexpected panics.
This will update every time you call it, witch means it will open the file, read it, parse the line, then close it.
Sourcepub fn get_string(&mut self) -> Option<String>
pub fn get_string(&mut self) -> Option<String>
This method will only panic if the line does not have at least two quotes (it will take all text between them) It will parce escape sequences with the rust compiler, so it should be accurate (i.e. \n will become a new line, etc) This is (suprisingly not that much slower then the number ones, only 0.002ms slower) I have not tested this with utf-16, so it may not work