[−][src]Function markedit::exact_text
pub fn exact_text<S: AsRef<str>>(needle: S) -> impl Matcher
Match an Event::Text
event with this exact text.
Not to be confused with text_containing()
.
use markedit::Matcher; use pulldown_cmark::Event; assert_eq!( markedit::exact_text("Something").is_in(markedit::parse("Something")), true, ); assert_eq!( markedit::exact_text("Something").is_in(markedit::parse("Something Else")), false, );