Enum cov::error::Location
[−]
[src]
pub enum Location { None, Cursor(u64), RecordIndex(usize), File(PathBuf), }
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]
fn wrap<T, E: Into<Error>, F: FnOnce() -> StdResult<T, E>>(
self,
f: F
) -> Result<T>
[src]
self,
f: F
) -> Result<T>
Annotates the result with context information.
fn wrap_error<E: Into<Error>>(self, e: E) -> Error
[src]
Annotates the error with context information.
Trait Implementations
impl Clone for Location
[src]
fn clone(&self) -> Location
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Location
[src]
impl PartialEq for Location
[src]
fn eq(&self, __arg_0: &Location) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Location) -> bool
[src]
This method tests for !=
.