/// Check if passed buffer should be hidden.
///
/// If configuration option ``hide_private`` is enabled,
/// private buffers will become hidden as well.
///
/// # Arguments
///
/// * `weechat` - A reference to the Weechat struct
/// * `buffer` - Buffer that should be hidden
Check if passed buffer should be hidden.
If configuration option ``hide_private`` is enabled,
private buffers will become hidden as well.
Check if passed buffer should be hidden . If configuration option ` ` hide_private ` ` is enabled private buffers will become hidden as well .
fn buffer_is_hidable(&self, weechat: &Weechat, buffer: &Buffer) -> bool {
        !(buffer.eq(&weechat.current_buffer())
            || buffer.full_name().starts_with("irc.server")
            || buffer.full_name().starts_with("core.")
            || (buffer
                .get_localvar("localvar_type")
                .eq(&Some(Cow::from("private")))
                && weechat
                    .get_plugin_option("hide_private")
                    .eq(&Some(Cow::from("off")))))
    }
fn buffer_is_hidable ( & self , weechat : & Weechat , buffer : & Buffer ) -> bool { ! ( buffer . eq ( & weechat . current_buffer ( ) ) || buffer . full_name ( ) . starts_with ( " " ) || buffer . full_name ( ) . starts_with ( " " ) || ( buffer . get_localvar ( " " ) . eq ( & Some ( Cow :: from ( " " ) ) ) && weechat . get_plugin_option ( " " ) . eq ( & Some ( Cow :: from ( " " ) ) ) ) ) }
Check if passed buffer should be hidden.
Check if passed buffer should be hidden .
&self
weechat
&Weechat
buffer
&Buffer