pub struct OptionList(/* private fields */);Expand description
A node in the syntax tree for OptionList
Implementations§
Source§impl OptionList
impl OptionList
Source§impl OptionList
impl OptionList
Sourcepub fn options(&self) -> impl Iterator<Item = _Option> + '_
pub fn options(&self) -> impl Iterator<Item = _Option> + '_
Returns an iterator over all option nodes in the options list.
Sourcepub fn find_option(&self, key: &str) -> Option<_Option>
pub fn find_option(&self, key: &str) -> Option<_Option>
Find an option node by key.
Sourcepub fn has_option(&self, key: &str) -> bool
pub fn has_option(&self, key: &str) -> bool
Check if an option with the given key exists
Sourcepub fn get_option(&self, key: &str) -> Option<String>
pub fn get_option(&self, key: &str) -> Option<String>
Get the value of an option by key
Trait Implementations§
Source§impl Clone for OptionList
impl Clone for OptionList
Source§impl Debug for OptionList
impl Debug for OptionList
Source§impl Display for OptionList
impl Display for OptionList
impl Eq for OptionList
Source§impl Hash for OptionList
impl Hash for OptionList
Source§impl PartialEq for OptionList
impl PartialEq for OptionList
impl StructuralPartialEq for OptionList
Auto Trait Implementations§
impl !RefUnwindSafe for OptionList
impl !Send for OptionList
impl !Sync for OptionList
impl !UnwindSafe for OptionList
impl Freeze for OptionList
impl Unpin for OptionList
impl UnsafeUnpin for OptionList
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