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]
impl<T> Errors<T>
pub fn new() -> Errors<T>
[src]
pub fn new() -> Errors<T>
Creates a new, empty Errors
instance.
pub fn has_errors(&self) -> bool
[src]
pub fn has_errors(&self) -> bool
Returns true if self
contains any errors
pub fn len(&self) -> usize
[src]
pub fn len(&self) -> usize
The number of errors in the error list
pub fn is_empty(&self) -> bool
[src]
pub fn is_empty(&self) -> bool
pub fn push(&mut self, t: T)
[src]
pub fn push(&mut self, t: T)
Adds an error to self
pub fn pop(&mut self) -> Option<T>
[src]
pub fn pop(&mut self) -> Option<T>
Pops and error off the error list
ⓘImportant traits for Iter<'a, T>pub fn iter(&self) -> Iter<T>
[src]
pub fn iter(&self) -> Iter<T>
Trait Implementations
impl<T: Clone> Clone for Errors<T>
[src]
impl<T: Clone> Clone for Errors<T>
fn clone(&self) -> Errors<T>
[src]
fn clone(&self) -> Errors<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl<T: Debug> Debug for Errors<T>
[src]
impl<T: Debug> Debug for Errors<T>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<T: PartialEq> PartialEq for Errors<T>
[src]
impl<T: PartialEq> PartialEq for Errors<T>
fn eq(&self, other: &Errors<T>) -> bool
[src]
fn eq(&self, other: &Errors<T>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Errors<T>) -> bool
[src]
fn ne(&self, other: &Errors<T>) -> bool
This method tests for !=
.
impl<T> Default for Errors<T>
[src]
impl<T> Default for Errors<T>
impl<T> Index<usize> for Errors<T>
[src]
impl<T> Index<usize> for Errors<T>
type Output = T
The returned type after indexing.
ⓘImportant traits for &'a mut Rfn index(&self, index: usize) -> &T
[src]
fn index(&self, index: usize) -> &T
Performs the indexing (container[index]
) operation.
impl<T> IndexMut<usize> for Errors<T>
[src]
impl<T> IndexMut<usize> for Errors<T>
ⓘImportant traits for &'a mut Rfn index_mut(&mut self, index: usize) -> &mut T
[src]
fn index_mut(&mut self, index: usize) -> &mut T
Performs the mutable indexing (container[index]
) operation.
impl<T> Extend<T> for Errors<T>
[src]
impl<T> Extend<T> for Errors<T>
fn extend<Iter: IntoIterator<Item = T>>(&mut self, iter: Iter)
[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> From<Vec<T>> for Errors<T>
impl<T> FromIterator<T> for Errors<T>
[src]
impl<T> FromIterator<T> for Errors<T>
fn from_iter<Iter: IntoIterator<Item = T>>(iter: Iter) -> 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> Into<Vec<T>> for Errors<T>
impl<T> IntoIterator for Errors<T>
[src]
impl<T> IntoIterator for Errors<T>
type Item = T
The type of the elements being iterated over.
type IntoIter = IntoIter<T>
Which kind of iterator are we turning this into?
ⓘImportant traits for IntoIter<T>fn into_iter(self) -> IntoIter<T>
[src]
fn into_iter(self) -> IntoIter<T>
Creates an iterator from a value. Read more
impl<'a, T> IntoIterator for &'a Errors<T>
[src]
impl<'a, T> IntoIterator for &'a Errors<T>
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?
ⓘImportant traits for Iter<'a, T>fn into_iter(self) -> Iter<'a, T>
[src]
fn into_iter(self) -> Iter<'a, T>
Creates an iterator from a value. Read more
impl<'a, T> IntoIterator for &'a mut Errors<T>
[src]
impl<'a, T> IntoIterator for &'a mut Errors<T>
type Item = &'a mut T
The type of the elements being iterated over.
type IntoIter = IterMut<'a, T>
Which kind of iterator are we turning this into?
ⓘImportant traits for IterMut<'a, T>fn into_iter(self) -> IterMut<'a, T>
[src]
fn into_iter(self) -> IterMut<'a, T>
Creates an iterator from a value. Read more
impl<T: Display> Display for Errors<T>
[src]
impl<T: Display> Display for Errors<T>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<T: Display + Debug + Any> StdError for Errors<T>
[src]
impl<T: Display + Debug + Any> StdError for Errors<T>