[][src]Struct weechat::infolist::Infolist

pub struct Infolist { /* fields omitted */ }

Weechat Infolist type.

Methods

impl Infolist[src]

pub fn next(&self) -> bool[src]

Move the "cursor" to the next item in an infolist.

pub fn prev(&self) -> bool[src]

Move the "cursor" to the previous item in an infolist.

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

Get the list of fields for current infolist item. Returns a string with the comma separated list of type/name tuple separated by a colon. The types are: "i" (integer), "s" (string), "p" (pointer), "b" (buffer), "t" (time). Example: "i:my_integer,s:my_string"

pub fn get_buffer(&self) -> Option<Buffer>[src]

Get the buffer of the current infolist item. If the infolist item doesn't have a buffer None is returned.

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

Get the value of a string variable in the current infolist item.

  • name - The variable name of the infolist item. If the variable isn't found an empty string is returned.

Trait Implementations

impl Drop for Infolist[src]

Auto Trait Implementations

impl !Send for Infolist

impl !Sync for Infolist

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]