Struct irc_bot::MsgPrefix [−][src]
pub struct MsgPrefix<'a> { pub nick: Option<&'a str>, pub user: Option<&'a str>, pub host: Option<&'a str>, }
Fields
nick: Option<&'a str>
user: Option<&'a str>
host: Option<&'a str>
Methods
impl<'a> MsgPrefix<'a>
[src]
impl<'a> MsgPrefix<'a>
pub fn len(&self) -> usize
[src]
pub fn len(&self) -> usize
Returns an upper bound on the length of the message prefix, accurate to within a few bytes.
pub fn to_owning(&self) -> OwningMsgPrefix
[src]
pub fn to_owning(&self) -> OwningMsgPrefix
Converts the MsgPrefix
into an OwningMsgPrefix
.
This can't be a ToOwned
implementation because that would conflict with MsgPrefix
's
Clone
implementation.
Trait Implementations
impl<'a> Clone for MsgPrefix<'a>
[src]
impl<'a> Clone for MsgPrefix<'a>
fn clone(&self) -> MsgPrefix<'a>
[src]
fn clone(&self) -> MsgPrefix<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<'a> Copy for MsgPrefix<'a>
[src]
impl<'a> Copy for MsgPrefix<'a>
impl<'a> Debug for MsgPrefix<'a>
[src]
impl<'a> Debug for MsgPrefix<'a>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<'a> Eq for MsgPrefix<'a>
[src]
impl<'a> Eq for MsgPrefix<'a>
impl<'a> PartialEq for MsgPrefix<'a>
[src]
impl<'a> PartialEq for MsgPrefix<'a>