pub struct OptionMap(/* private fields */);Expand description
A deterministic map of tmux option names to values.
Implementations§
Source§impl OptionMap
impl OptionMap
Sourcepub fn get(&self, name: &str) -> Option<&OptionValue>
pub fn get(&self, name: &str) -> Option<&OptionValue>
Returns an option by name.
Sourcepub fn insert(
&mut self,
name: impl Into<String>,
value: impl Into<OptionValue>,
) -> Option<OptionValue>
pub fn insert( &mut self, name: impl Into<String>, value: impl Into<OptionValue>, ) -> Option<OptionValue>
Inserts an option value.
Sourcepub fn iter(&self) -> impl Iterator<Item = (&str, &OptionValue)>
pub fn iter(&self) -> impl Iterator<Item = (&str, &OptionValue)>
Iterates in lexical option-name order.
Trait Implementations§
impl Eq for OptionMap
impl StructuralPartialEq for OptionMap
Auto Trait Implementations§
impl Freeze for OptionMap
impl RefUnwindSafe for OptionMap
impl Send for OptionMap
impl Sync for OptionMap
impl Unpin for OptionMap
impl UnsafeUnpin for OptionMap
impl UnwindSafe for OptionMap
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