Skip to main content

none

Function none 

Source
pub fn none() -> NoneMatcher
Expand description

Matches an Option containing None.

verify_that!(None::<()>, none())?;   // Passes
verify_that!(Some("Some value"), none())?;  // Fails