Struct irc_message::IrcMessage [] [src]

pub struct IrcMessage<T: Eq + Hash + AsRef<str>> {
    pub raw: T,
    pub tags: HashMap<T, T>,
    pub prefix: Option<T>,
    pub command: Option<T>,
    pub params: Vec<T>,
}

Fields

raw: T tags: HashMap<T, T> prefix: Option<T> command: Option<T> params: Vec<T>

Methods

impl IrcMessage<String>
[src]

impl<'a> IrcMessage<&'a str>
[src]

fn parse_ref(line: &'a str) -> Option<IrcMessage<&'a str>>

Trait Implementations

impl<T: Clone + Eq + Hash + AsRef<str>> Clone for IrcMessage<T>
[src]

fn clone(&self) -> IrcMessage<T>

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl<T: Eq + Eq + Hash + AsRef<str>> Eq for IrcMessage<T>
[src]

impl<T: PartialEq + Eq + Hash + AsRef<str>> PartialEq for IrcMessage<T>
[src]

fn eq(&self, __arg_0: &IrcMessage<T>) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &IrcMessage<T>) -> bool

This method tests for !=.

impl<T: Debug + Eq + Hash + AsRef<str>> Debug for IrcMessage<T>
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl<T: Eq + Hash + AsRef<str>> Display for IrcMessage<T>
[src]

fn fmt(&self, fmt: &mut Formatter) -> FmtResult

Formats the value using the given formatter.