Crate collapse

source ·
Expand description

Functions and macros to compare strings, ignoring whitespace

Macros

Compare two strings, collapse consecutive whitespace, and assert their equality. Panics if two strings are not equivalent after collapsing whitespace.
Compare two strings, collapse consecutive whitespace, and assert their inequality. Panics if two strings are equivalent after collapsing whitespace.

Functions

Trim leading and trailing whitespace and collapse all consecutive whitespace to a single space character