Skip to main content

assert_that

Macro assert_that 

Source
macro_rules! assert_that {
    ($e:expr) => { ... };
}
Expand description

Ergonomic macro entrypoint that handles both owned values and references.

Uses autoref specialization to transparently handle both assert_that!(owned_value) and assert_that!(&borrowed_value) without requiring the user to think about ownership.