pub struct Ini { /* private fields */ }Expand description
A file in the format that liblsl reads.
The rules come from src/util/inireader.cpp:
- A line that starts with
;is a comment. A#is not. - A blank line is skipped.
[section]opens a section. The key is thensection.Key.- A line with no
=is an error, and one error throws the whole file away. - A repeated key is an error.
- The key and the value lose the space around them.
Implementations§
Source§impl Ini
impl Ini
Sourcepub fn contains_key(&self, key: &str) -> bool
pub fn contains_key(&self, key: &str) -> bool
True when the file explicitly set key.
Sourcepub fn int(&self, key: &str, default: i64) -> i64
pub fn int(&self, key: &str, default: i64) -> i64
A whole number, read the way std::istream reads one.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Ini
impl Freeze for Ini
impl Move for Ini
impl RefUnwindSafe for Ini
impl Send for Ini
impl Sync for Ini
impl Unpin for Ini
impl UnsafeUnpin for Ini
impl UnwindSafe for Ini
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more