pub trait WrapCased {
type Wrapper<S: CaseSensitivity>;
// Required methods
fn case_sensitive(self) -> Self::Wrapper<CaseSensitive>;
fn case_insensitive(self) -> Self::Wrapper<CaseInsensitive>;
}
Expand description
Wraps Self
in a type that affects the case sensitivity of operations
Using methods of CaseSensitivity
in Wrapper
implementations are not mandotary.
They are provided mostly for convenience and to have a common implementation for comparisons
Required Associated Types§
Sourcetype Wrapper<S: CaseSensitivity>
type Wrapper<S: CaseSensitivity>
Wrapper type generic over case sensitivity.
Required Methods§
fn case_sensitive(self) -> Self::Wrapper<CaseSensitive>
fn case_insensitive(self) -> Self::Wrapper<CaseInsensitive>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.