[−][src]Enum twitchchat::irc::PrefixIndex
Prefix is the sender of a message
Variants
A user prefix
Fields of User
nick: MaybeOwnedIndex
Index of the nickname
A server prefix
Fields of Server
host: MaybeOwnedIndex
Index of the hostname
Implementations
impl PrefixIndex
[src]
pub fn is_server(&self) -> bool
[src]
Was this message from the server?
pub fn is_nick(&self) -> bool
[src]
Was this message from a user?
pub fn nick_index(self) -> Option<MaybeOwnedIndex>
[src]
Get the index of the nickname
pub fn host_index(self) -> Option<MaybeOwnedIndex>
[src]
Get the index of the hostname
pub fn as_index(self) -> MaybeOwnedIndex
[src]
Consumes this returning the index
Trait Implementations
impl Clone for PrefixIndex
[src]
fn clone(&self) -> PrefixIndex
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for PrefixIndex
[src]
impl Debug for PrefixIndex
[src]
impl Eq for PrefixIndex
[src]
impl Hash for PrefixIndex
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl IntoOwned<'static> for PrefixIndex
[src]
impl Ord for PrefixIndex
[src]
fn cmp(&self, other: &PrefixIndex) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<PrefixIndex> for PrefixIndex
[src]
fn eq(&self, other: &PrefixIndex) -> bool
[src]
fn ne(&self, other: &PrefixIndex) -> bool
[src]
impl PartialOrd<PrefixIndex> for PrefixIndex
[src]
fn partial_cmp(&self, other: &PrefixIndex) -> Option<Ordering>
[src]
fn lt(&self, other: &PrefixIndex) -> bool
[src]
fn le(&self, other: &PrefixIndex) -> bool
[src]
fn gt(&self, other: &PrefixIndex) -> bool
[src]
fn ge(&self, other: &PrefixIndex) -> bool
[src]
impl StructuralEq for PrefixIndex
[src]
impl StructuralPartialEq for PrefixIndex
[src]
Auto Trait Implementations
impl RefUnwindSafe for PrefixIndex
impl Send for PrefixIndex
impl Sync for PrefixIndex
impl Unpin for PrefixIndex
impl UnwindSafe for PrefixIndex
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,
pub 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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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.
pub 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>,