[][src]Struct conjure_error::Params

pub struct Params<'a>(_);

A collection of error parameters, either safe or unsafe.

Implementations

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

pub fn iter(&self) -> ParamsIter<'a>

Notable traits for ParamsIter<'a>

impl<'a> Iterator for ParamsIter<'a> type Item = (&'a str, &'a Any);
[src]

Returns an iterator over the key-value parameter pairs.

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

Returns the number of parameters.

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

Determines if there are no parameters.

Trait Implementations

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

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

type Output = Any

The returned type after indexing.

impl<'a> IntoIterator for &Params<'a>[src]

type Item = (&'a str, &'a Any)

The type of the elements being iterated over.

type IntoIter = ParamsIter<'a>

Which kind of iterator are we turning this into?

Auto Trait Implementations

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

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

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

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

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

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, 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.