Trait scan_rules::input::StrCompare
[−]
[src]
pub trait StrCompare: 'static { fn compare(a: &str, b: &str) -> bool; }
Defines an interface for comparing two strings for equality.
This is used to allow StrCursor
to be parametrised on different kinds of string comparisons: case-sensitive, case-insensitive, canonicalising, etc.
Required Methods
fn compare(a: &str, b: &str) -> bool
Compare two strings and return true
if they should be considered "equal".
Implementors
impl StrCompare for ExactCompare
impl StrCompare for IgnoreAsciiCase