[][src]Struct weechat::config::SectionHandle

pub struct SectionHandle<'a> { /* fields omitted */ }

A handle to a Weechat config section.

Methods from Deref<Target = ConfigSection>

pub fn name(&self) -> &str[src]

Get the name of the section.

pub fn options(&self) -> Vec<ConfigOption<'_>>[src]

Get the config options of this section.

pub fn search_option(&self, option_name: &str) -> Option<ConfigOption<'_>>[src]

Search for an option in this section.

Arguments

  • option_name - The name of the option to search for.

Trait Implementations

impl<'a> Deref for SectionHandle<'a>[src]

type Target = ConfigSection

The resulting type after dereferencing.

Auto Trait Implementations

impl<'a> !RefUnwindSafe for SectionHandle<'a>

impl<'a> !Send for SectionHandle<'a>

impl<'a> !Sync for SectionHandle<'a>

impl<'a> Unpin for SectionHandle<'a>

impl<'a> !UnwindSafe for SectionHandle<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.