lib.rs
Only showing results from lib.rs
Clear filter to show all search results
lib.rs
lib.rs
Many assertions require std::fmt::Debug, limiting usability to types implementing Debug. Can we implement fallback rendering? Will probably require the currently unstable specialization feature. The differentiation between assert_that for owned values and assert_that_ref for references is bad.
Each of the assert_* macros also comes in an expect_* variant, which returns a Result indicating if the comparison was successful. Documentation. assert_float_eq's documentation can be found on docs.rs. License. assert_float_eq is dual licensed under the Apache 2.0 license as well as the MIT license.
v 0.7.0 # assertions # debugging # annotations # testing-debugging # testing # compile-time # development-tools dlt_log Log crate adapter for integrating with the Diagnostic Log and Trace (DLT) system
429,259 downloads per month Used in 531 crates (124 directly). Unlicense OR MIT OR Apache-2… 17KB 229 lines. More Asserts (for Rust).. Small library providing assertion macros similar to the {debug_,}assert_{eq,ne} macros in the stdlib.. Usage use more_asserts as ma; #[derive(Debug, PartialEq, PartialOrd)] enum Example {Foo, Bar } ma::assert_le!(3, 4); ma::assert_ge!(10, 10, "You can pass a ...
assert_let_bind. A convenience macro for writing pattern-matching tests in the Rust programming language. The assert_let macro tests whether a value matches a given pattern, binding the pattern in the current scope if the match succeeds and causing a panic if the match fails. (Strongly inspired by assert_matches)
lib.rs
lib.rs
lib.rs
lib.rs
lib.rs
lib.rs
lib.rs
lib.rs
Help us improve DuckDuckGo searches with your feedback