pub struct ParamSet { /* private fields */ }Expand description
A named parameter set for storing typed key-value parameters.
Implementations§
Source§impl ParamSet
impl ParamSet
pub fn new() -> Self
pub fn set_float(&mut self, key: &str, v: f32)
pub fn set_int(&mut self, key: &str, v: i64)
pub fn set_bool(&mut self, key: &str, v: bool)
pub fn set_text(&mut self, key: &str, v: &str)
pub fn get(&self, key: &str) -> Option<&ParamValue>
pub fn get_float(&self, key: &str) -> Option<f32>
pub fn get_int(&self, key: &str) -> Option<i64>
pub fn get_bool(&self, key: &str) -> Option<bool>
pub fn get_text(&self, key: &str) -> Option<&str>
pub fn remove(&mut self, key: &str) -> bool
pub fn contains(&self, key: &str) -> bool
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn is_dirty(&self) -> bool
pub fn mark_clean(&mut self)
pub fn clear(&mut self)
pub fn keys(&self) -> Vec<&str>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ParamSet
impl RefUnwindSafe for ParamSet
impl Send for ParamSet
impl Sync for ParamSet
impl Unpin for ParamSet
impl UnsafeUnpin for ParamSet
impl UnwindSafe for ParamSet
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