[−][src]Trait tectonic::errors::DefinitelySame
The DefinitelySame trait is a helper trait implemented because Errors do not generically implement PartialEq. This is a bit of a drag for testing since it's nice to be able to check if an error matches the one that's expected. DefinitelySame addresses this by providing a weak equivalence test: definitely_same() returns true if the two values definitely are equivalent, and false otherwise. This can happen if the value are known to be different, but also if we can't tell. It doesn't cover all cases, but it does cover the ones that come up in our test suite.
Required methods
fn definitely_same(&self, other: &Self) -> bool
Implementations on Foreign Types
impl<T: DefinitelySame, E: DefinitelySame> DefinitelySame for StdResult<T, E>
[src]
fn definitely_same(&self, other: &Self) -> bool
[src]
Implementors
impl DefinitelySame for TexResult
[src]
fn definitely_same(&self, other: &Self) -> bool
[src]
impl DefinitelySame for ErrorKind
[src]
fn definitely_same(&self, other: &Self) -> bool
[src]
impl DefinitelySame for Error
[src]
fn definitely_same(&self, other: &Self) -> bool
[src]
Here we abuse DefinitelySame a bit and ignore the backtrace etc.