Trait precis_core::profile::Rules
source · pub trait Rules {
// Provided methods
fn width_mapping_rule<'a, T>(&self, _s: T) -> Result<Cow<'a, str>, Error>
where T: Into<Cow<'a, str>> { ... }
fn additional_mapping_rule<'a, T>(
&self,
_s: T,
) -> Result<Cow<'a, str>, Error>
where T: Into<Cow<'a, str>> { ... }
fn case_mapping_rule<'a, T>(&self, _s: T) -> Result<Cow<'a, str>, Error>
where T: Into<Cow<'a, str>> { ... }
fn normalization_rule<'a, T>(&self, _s: T) -> Result<Cow<'a, str>, Error>
where T: Into<Cow<'a, str>> { ... }
fn directionality_rule<'a, T>(&self, _s: T) -> Result<Cow<'a, str>, Error>
where T: Into<Cow<'a, str>> { ... }
}
Expand description
Rules that any profile of a PRECIS string class MUST define to proper manage the handling of right-to-left code points as well as various mapping operations such as case preservation or lower casing, Unicode normalization, mapping of certain code points to other code points or to nothing, and mapping of full width and half width code points.
Provided Methods§
Object Safety§
This trait is not object safe.