Struct irc_rust::Tags[][src]

pub struct Tags<'a> { /* fields omitted */ }

Tag Map as described through IRCv3.

Implementations

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

pub fn new() -> Tags<'a>[src]

Create a new Tag map from the given string. Expects it to be in valid IRCv3 format.

pub fn len_raw(&self) -> usize[src]

Character length of the tags if formatted as IRC string.

pub fn len(&self) -> usize[src]

pub fn is_empty(&self) -> bool[src]

pub fn iter(&self) -> impl Iterator<Item = (&'a str, &'a str)>[src]

Iterator over the tag entries.

pub fn get(&self, key: &str) -> Option<&str>[src]

Trait Implementations

impl<'a> AsRef<str> for Tags<'a>[src]

impl<'a> Clone for Tags<'a>[src]

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

impl<'a> Default for Tags<'a>[src]

impl<'a> Display for Tags<'a>[src]

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

impl<'a> Index<&'a str> for Tags<'a>[src]

type Output = str

The returned type after indexing.

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

impl<'a> StructuralEq for Tags<'a>[src]

impl<'a> StructuralPartialEq for Tags<'a>[src]

impl<'a> TryFrom<&'a str> for Tags<'a>[src]

type Error = InvalidIrcFormatError

The type returned in the event of a conversion error.

Auto Trait Implementations

impl<'a> RefUnwindSafe for Tags<'a>

impl<'a> Send for Tags<'a>

impl<'a> Sync for Tags<'a>

impl<'a> Unpin for Tags<'a>

impl<'a> UnwindSafe for Tags<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.