pub struct ErrorBuilder { /* private fields */ }Expand description
An interface for fluently constructing errors.
Implementations§
Source§impl ErrorBuilder
impl ErrorBuilder
Sourcepub fn at_region<R: RegionProvider>(self, region_provider: &R) -> Self
pub fn at_region<R: RegionProvider>(self, region_provider: &R) -> Self
Locates the error at the region given by region_provider.
Sourcepub fn without_loc(self) -> Self
pub fn without_loc(self) -> Self
Identifies the error as having no location.
Sourcepub fn continues(self) -> Self
pub fn continues(self) -> Self
Marks this error as without a message and instead continuing a previous error.
Requires: the error is of secondary style, which must be set before this
function is called (see ErrorBuilder::of_style).
Auto Trait Implementations§
impl Freeze for ErrorBuilder
impl RefUnwindSafe for ErrorBuilder
impl !Send for ErrorBuilder
impl !Sync for ErrorBuilder
impl Unpin for ErrorBuilder
impl UnwindSafe for ErrorBuilder
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