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§fn clone(&self) -> OptionList
fn clone(&self) -> OptionList
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OptionList
impl Debug for OptionList
Source§impl Display for OptionList
impl Display for OptionList
Source§impl Hash for OptionList
impl Hash for OptionList
Source§impl PartialEq for OptionList
impl PartialEq for OptionList
impl Eq for OptionList
impl StructuralPartialEq for OptionList
Auto Trait Implementations§
impl Freeze for OptionList
impl !RefUnwindSafe for OptionList
impl !Send for OptionList
impl !Sync for OptionList
impl Unpin for OptionList
impl UnsafeUnpin for OptionList
impl !UnwindSafe 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