pub struct IrcMsg<'msg> { /* private fields */ }Expand description
A single IRC Message created from a slice of bytes.
Implementations§
Source§impl<'msg> IrcMsg<'msg>
impl<'msg> IrcMsg<'msg>
Sourcepub const fn parse(input: &'msg [u8]) -> Result<Self, IrcMsgError<'_>>
pub const fn parse(input: &'msg [u8]) -> Result<Self, IrcMsgError<'_>>
Sourcepub const fn parse_utf8_only(input: &'msg [u8]) -> Result<Self, IrcMsgError<'_>>
pub const fn parse_utf8_only(input: &'msg [u8]) -> Result<Self, IrcMsgError<'_>>
Sourcepub const fn parameters(&self) -> Option<Parameters<'_>>
pub const fn parameters(&self) -> Option<Parameters<'_>>
Extract the Parameters from an IrcMsg if they exist.
Trait Implementations§
impl<'msg> Copy for IrcMsg<'msg>
impl<'msg> Eq for IrcMsg<'msg>
impl<'msg> StructuralPartialEq for IrcMsg<'msg>
Auto Trait Implementations§
impl<'msg> Freeze for IrcMsg<'msg>
impl<'msg> RefUnwindSafe for IrcMsg<'msg>
impl<'msg> Send for IrcMsg<'msg>
impl<'msg> Sync for IrcMsg<'msg>
impl<'msg> Unpin for IrcMsg<'msg>
impl<'msg> UnwindSafe for IrcMsg<'msg>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more