Skip to main content

EqStr

Trait EqStr 

Source
pub trait EqStr: for<'a> PartialEq<&'a str> { }
Expand description

Trait for types that form an [equivalent relation] together with str.

This trait without methods is equivalent in all respects to std::cmp::Eq excepting that it indicates that the type implementing it can be compared for equality with str.

Implementations on Foreign Types§

Source§

impl EqStr for &str

Implementors§

Source§

impl EqStr for Literal

Available on crate feature read only.