pub struct Options { /* private fields */ }Expand description
Ordered map of loader options.
Implementations§
Source§impl Options
impl Options
pub fn new() -> Self
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn contains_key(&self, key: &str) -> bool
pub fn get(&self, key: &str) -> Option<&OptionValue>
pub fn get_mut(&mut self, key: &str) -> Option<&mut OptionValue>
pub fn insert<K: Into<String>, V: Into<OptionValue>>( &mut self, key: K, value: V, ) -> Option<OptionValue>
pub fn remove(&mut self, key: &str) -> Option<OptionValue>
pub fn iter(&self) -> impl Iterator<Item = (&str, &OptionValue)>
pub fn keys(&self) -> impl Iterator<Item = &str>
pub fn values(&self) -> impl Iterator<Item = &OptionValue>
Trait Implementations§
Source§impl From<Options> for OptionValue
impl From<Options> for OptionValue
impl StructuralPartialEq for Options
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnsafeUnpin for Options
impl UnwindSafe for Options
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