Struct gluon_base::error::Errors
[−]
[src]
pub struct Errors<T> { /* fields omitted */ }
An error type which can represent multiple errors.
Methods
impl<T> Errors<T>
[src]
fn new() -> Errors<T>
Creates a new, empty Errors
instance.
fn has_errors(&self) -> bool
Returns true if self
contains any errors
fn len(&self) -> usize
The number of errors in the error list
fn is_empty(&self) -> bool
fn push(&mut self, t: T)
Adds an error to self
fn pop(&mut self) -> Option<T>
Pops and error off the error list
Trait Implementations
impl<T: Debug> Debug for Errors<T>
[src]
impl<T: PartialEq> PartialEq for Errors<T>
[src]
fn eq(&self, __arg_0: &Errors<T>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Errors<T>) -> bool
This method tests for !=
.
impl<T> Extend<T> for Errors<T>
[src]
fn extend<Iter: IntoIterator<Item = T>>(&mut self, iter: Iter)
Extends a collection with the contents of an iterator. Read more
impl<T> From<Vec<T>> for Errors<T>
[src]
impl<T> FromIterator<T> for Errors<T>
[src]
fn from_iter<Iter: IntoIterator<Item = T>>(iter: Iter) -> Errors<T>
Creates a value from an iterator. Read more
impl<T> Into<Vec<T>> for Errors<T>
[src]
impl<T> IntoIterator for Errors<T>
[src]
type Item = T
The type of the elements being iterated over.
type IntoIter = IntoIter<T>
Which kind of iterator are we turning this into?
fn into_iter(self) -> IntoIter<T>
Creates an iterator from a value. Read more
impl<'a, T> IntoIterator for &'a Errors<T>
[src]
type Item = &'a T
The type of the elements being iterated over.
type IntoIter = Iter<'a, T>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Iter<'a, T>
Creates an iterator from a value. Read more