Struct irc_rust::Tags [−][src]
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.
fn index(&self, key: &'a str) -> &Self::Output
[src]
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]
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]
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> 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.
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>,