[−][src]Struct irc3::proto::message::Prefix
A prefix of an IRC message.
Methods
impl Prefix
[src]
pub fn new(origin: &str, user: Option<&str>, host: Option<&str>) -> Prefix
[src]
pub fn parse(pre: &str) -> Prefix
[src]
pub fn origin(&self) -> &str
[src]
pub fn user(&self) -> Option<&str>
[src]
pub fn host(&self) -> Option<&str>
[src]
pub fn set_origin(&mut self, s: &str)
[src]
pub fn set_user(&mut self, s: &str)
[src]
pub fn set_host(&mut self, s: &str)
[src]
Trait Implementations
impl Debug for Prefix
[src]
impl Display for Prefix
[src]
impl PartialEq<Prefix> for Prefix
[src]
impl StructuralPartialEq for Prefix
[src]
Auto Trait Implementations
impl RefUnwindSafe for Prefix
impl Send for Prefix
impl Sync for Prefix
impl Unpin for Prefix
impl UnwindSafe for Prefix
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,