[][src]Struct weechat::config::ConfigSection

pub struct ConfigSection { /* fields omitted */ }

Weechat Configuration section

Methods

impl ConfigSection[src]

pub fn new_string_option<D>(
    &self,
    name: &str,
    description: &str,
    default_value: &str,
    value: &str,
    null_allowed: bool,
    change_cb: Option<fn(_: &mut D, _: &StringOption)>,
    change_cb_data: Option<D>
) -> StringOption where
    D: Default
[src]

Create a new Weechat configuration option.

  • name - Name of the new option

pub fn new_integer_option<D>(
    &self,
    name: &str,
    description: &str,
    string_values: &str,
    min: i32,
    max: i32,
    default_value: &str,
    value: &str,
    null_allowed: bool,
    change_cb: Option<fn(_: &mut D, _: &IntegerOption)>,
    change_cb_data: Option<D>
) -> IntegerOption where
    D: Default
[src]

Trait Implementations

impl Drop for ConfigSection[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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