pub struct BuildErrors(/* private fields */);Expand description
A collection of BuildErrors from a failed build pipeline.
Wraps a Vec<BuildError> and provides emit_cargo_errors()
for printing each error as a cargo::error= directive.
Implementations§
Source§impl BuildErrors
impl BuildErrors
Sourcepub fn errors(&self) -> &[BuildError]
pub fn errors(&self) -> &[BuildError]
Return a borrowed slice of the contained errors.
Sourcepub fn into_errors(self) -> Vec<BuildError>
pub fn into_errors(self) -> Vec<BuildError>
Consume this collection and return the inner Vec<BuildError>.
Sourcepub fn emit_cargo_errors(&self)
pub fn emit_cargo_errors(&self)
Print each error as a cargo::error= directive to stdout.
Trait Implementations§
Source§impl Clone for BuildErrors
impl Clone for BuildErrors
Source§fn clone(&self) -> BuildErrors
fn clone(&self) -> BuildErrors
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BuildErrors
impl Debug for BuildErrors
Source§impl Display for BuildErrors
impl Display for BuildErrors
Source§impl Error for BuildErrors
impl Error for BuildErrors
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl<'a> IntoIterator for &'a BuildErrors
impl<'a> IntoIterator for &'a BuildErrors
Source§impl IntoIterator for BuildErrors
impl IntoIterator for BuildErrors
Auto Trait Implementations§
impl Freeze for BuildErrors
impl RefUnwindSafe for BuildErrors
impl Send for BuildErrors
impl Sync for BuildErrors
impl Unpin for BuildErrors
impl UnsafeUnpin for BuildErrors
impl UnwindSafe for BuildErrors
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more