Struct irc_rust::Params[][src]

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

Parameter list with an optional trailing message.

Implementations

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

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

Create a new Parameter list from the given string. Expects the string to be a valid parameter list.

pub fn trailing(&self) -> Option<&str>[src]

Returns the trailing parameter which is seperated from the other parameters with ’ :’.

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

Create an iterator over the parameter list excluding the trailing parameter.

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

Trait Implementations

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

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

impl<'a> Copy for Params<'a>[src]

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

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

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

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

impl<'a> From<&'a str> for Params<'a>[src]

impl<'a> Hash for Params<'a>[src]

impl<'a> Ord for Params<'a>[src]

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

impl<'a> PartialOrd<Params<'a>> for Params<'a>[src]

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

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

Auto Trait Implementations

impl<'a> RefUnwindSafe for Params<'a>

impl<'a> Send for Params<'a>

impl<'a> Sync for Params<'a>

impl<'a> Unpin for Params<'a>

impl<'a> UnwindSafe for Params<'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.