Struct const_irc_message_parser::source::Servername
source · pub struct Servername<'msg>(_);Expand description
The name of the server where the IrcMsg originated from.
Implementations§
source§impl<'msg> Servername<'msg>
impl<'msg> Servername<'msg>
sourcepub const fn content(&self) -> ContentType<'_>
pub const fn content(&self) -> ContentType<'_>
Extract the server name from the Source.
Trait Implementations§
source§impl<'msg> Clone for Servername<'msg>
impl<'msg> Clone for Servername<'msg>
source§fn clone(&self) -> Servername<'msg>
fn clone(&self) -> Servername<'msg>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<'msg> Debug for Servername<'msg>
impl<'msg> Debug for Servername<'msg>
source§impl<'msg> Display for Servername<'msg>
impl<'msg> Display for Servername<'msg>
source§impl<'msg> PartialEq<Servername<'msg>> for Servername<'msg>
impl<'msg> PartialEq<Servername<'msg>> for Servername<'msg>
source§fn eq(&self, other: &Servername<'msg>) -> bool
fn eq(&self, other: &Servername<'msg>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl<'msg> Copy for Servername<'msg>
impl<'msg> Eq for Servername<'msg>
impl<'msg> StructuralEq for Servername<'msg>
impl<'msg> StructuralPartialEq for Servername<'msg>
Auto Trait Implementations§
impl<'msg> RefUnwindSafe for Servername<'msg>
impl<'msg> Send for Servername<'msg>
impl<'msg> Sync for Servername<'msg>
impl<'msg> Unpin for Servername<'msg>
impl<'msg> UnwindSafe for Servername<'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