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

Methods

impl<'a> MsgPrefix<'a>
[src]

Returns an upper bound on the length of the message prefix, accurate to within a few bytes.

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]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a> Copy for MsgPrefix<'a>
[src]

impl<'a> Debug for MsgPrefix<'a>
[src]

Formats the value using the given formatter. Read more

impl<'a> Eq for MsgPrefix<'a>
[src]

impl<'a> PartialEq for MsgPrefix<'a>
[src]

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

This method tests for !=.

Auto Trait Implementations

impl<'a> Send for MsgPrefix<'a>

impl<'a> Sync for MsgPrefix<'a>