Struct irc_message::IrcMessage
[−]
[src]
pub struct IrcMessage<T: Eq + Hash + AsRef<str>> { pub raw: T, pub tags: HashMap<T, Option<T>>, pub prefix: Option<T>, pub command: Option<T>, pub params: Vec<T>, }
Fields
raw: T
prefix: Option<T>
command: Option<T>
params: Vec<T>
Methods
impl IrcMessage<String>
[src]
fn parse_own(line: &str) -> Option<IrcMessage<String>>
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 !=
.