[−][src]Struct gluon_base::error::Errors
An error type which can represent multiple errors.
Implementations
impl<T> Errors<T>
[src]
pub fn new() -> Errors<T>
[src]
Creates a new, empty Errors
instance.
pub fn has_errors(&self) -> bool
[src]
Returns true if self
contains any errors
pub fn len(&self) -> usize
[src]
The number of errors in the error list
pub fn is_empty(&self) -> bool
[src]
pub fn push(&mut self, t: T)
[src]
Adds an error to self
pub fn pop(&mut self) -> Option<T>
[src]
Pops and error off the error list
pub fn iter(&self) -> Iter<T>
[src]
Trait Implementations
impl<T: Clone> Clone for Errors<T>
[src]
impl<T: Debug> Debug for Errors<T>
[src]
impl<T> Default for Errors<T>
[src]
impl<T: Display> Display for Errors<T>
[src]
impl<T: Eq> Eq for Errors<T>
[src]
impl<T: Display + Debug + Any> Error for Errors<T>
[src]
fn description(&self) -> &str
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl<T> Extend<T> for Errors<T>
[src]
fn extend<Iter: IntoIterator<Item = T>>(&mut self, iter: Iter)
[src]
fn extend_one(&mut self, item: A)
[src]
fn extend_reserve(&mut self, additional: usize)
[src]
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>
[src]
impl<T: Hash> Hash for Errors<T>
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<T> Index<usize> for Errors<T>
[src]
impl<T> IndexMut<usize> for Errors<T>
[src]
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>
[src]
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>
[src]
impl<'a, T> IntoIterator for &'a mut Errors<T>
[src]
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?
fn into_iter(self) -> IterMut<'a, T>
[src]
impl<T: PartialEq> PartialEq<Errors<T>> for Errors<T>
[src]
impl<T> StructuralEq for Errors<T>
[src]
impl<T> StructuralPartialEq for Errors<T>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for Errors<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Errors<T> where
T: Send,
T: Send,
impl<T> Sync for Errors<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Errors<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Errors<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
[src]
T: Any,
impl<T> AsFail for T where
T: Fail,
T: Fail,
fn as_fail(&self) -> &(dyn Fail + 'static)
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CloneAny for T where
T: Clone + Any,
[src]
T: Clone + Any,
impl<E> Fail for E where
E: 'static + Error + Send + Sync,
E: 'static + Error + Send + Sync,
fn name(&self) -> Option<&str>
fn cause(&self) -> Option<&(dyn Fail + 'static)>
fn backtrace(&self) -> Option<&Backtrace>
fn context<D>(self, context: D) -> Context<D> where
D: Display + Send + Sync + 'static,
D: Display + Send + Sync + 'static,
fn compat(self) -> Compat<Self>
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<I> IntoIterator for I where
I: Iterator,
[src]
I: Iterator,
type Item = <I as Iterator>::Item
The type of the elements being iterated over.
type IntoIter = I
Which kind of iterator are we turning this into?
fn into_iter(self) -> I
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
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.
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>,