Enum cov::error::Location [−][src]
The location where an error happened.
Variants
None
No source location.
Cursor(u64)
Cursor position in a file.
RecordIndex(usize)
Record index in a GCNO/GCDA file.
File(PathBuf)
Path to a GCNO/GCDA file.
Methods
impl Location
[src]
impl Location
pub fn wrap<T, E: Into<Error>, F: FnOnce() -> StdResult<T, E>>(
self,
f: F
) -> Result<T>
[src]
pub fn wrap<T, E: Into<Error>, F: FnOnce() -> StdResult<T, E>>(
self,
f: F
) -> Result<T>
Annotates the result with context information.
pub fn wrap_error<E: Into<Error>>(self, e: E) -> Error
[src]
pub fn wrap_error<E: Into<Error>>(self, e: E) -> Error
Annotates the error with context information.
Trait Implementations
impl Clone for Location
[src]
impl Clone for Location
fn clone(&self) -> Location
[src]
fn clone(&self) -> Location
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)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for Location
[src]
impl Debug for Location
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 PartialEq for Location
[src]
impl PartialEq for Location
fn eq(&self, other: &Location) -> bool
[src]
fn eq(&self, other: &Location) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Location) -> bool
[src]
fn ne(&self, other: &Location) -> bool
This method tests for !=
.
impl Eq for Location
[src]
impl Eq for Location
impl Hash for Location
[src]
impl Hash for Location