[][src]Trait irc_proto::mode::ModeType

pub trait ModeType: Display + Debug + Clone + PartialEq {
    pub fn mode(target: &str, modes: &[Mode<Self>]) -> Command;
pub fn takes_arg(&self) -> bool;
pub fn from_char(c: char) -> Self; }

A marker trait for different kinds of Modes.

Required methods

pub fn mode(target: &str, modes: &[Mode<Self>]) -> Command[src]

Creates a command of this kind.

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

Returns true if this mode takes an argument, and false otherwise.

pub fn from_char(c: char) -> Self[src]

Creates a Mode from a given char.

Loading content...

Implementors

impl ModeType for ChannelMode[src]

impl ModeType for UserMode[src]

Loading content...