pub struct NickGroup<'a> { /* private fields */ }Expand description
Weechat nicklist Group type.
Implementations§
Source§impl<'a> NickGroup<'a>
impl<'a> NickGroup<'a>
Sourcepub fn level(&self) -> u32
pub fn level(&self) -> u32
Get the group nesting level.
Returns 0 if this is the root group, 1 if it’s a child of the root group.
Sourcepub fn add_nick(&self, nick_settings: NickSettings<'_>) -> Result<Nick<'_>, ()>
pub fn add_nick(&self, nick_settings: NickSettings<'_>) -> Result<Nick<'_>, ()>
Create and add a new nick to the buffer nicklist under this group.
§Arguments
nick_settings- Nick arguments struct for the nick that should be added.
Returns the newly created nick if one is created successfully, an empty error otherwise.
Auto Trait Implementations§
impl<'a> Freeze for NickGroup<'a>
impl<'a> !RefUnwindSafe for NickGroup<'a>
impl<'a> !Send for NickGroup<'a>
impl<'a> !Sync for NickGroup<'a>
impl<'a> Unpin for NickGroup<'a>
impl<'a> !UnwindSafe for NickGroup<'a>
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