Struct unicode_script::ScriptExtension [−][src]
#[non_exhaustive]pub struct ScriptExtension { /* fields omitted */ }
Expand description
A value for the Script_Extension
property
ScriptExtension
is one or more Script
This is essentially an optimized version of Vec<Script>
that uses bitfields
Implementations
Checks if the script extension is Inherited
Intersect this ScriptExtension
with another ScriptExtension
. Produces Unknown
if things
do not intersect. This is equivalent to ScriptExtension::intersection
but it stores the result
in self
“Common” (Zyyy
) and “Inherited” (Zinh
) are considered as intersecting
everything, the intersection of Common
and Inherited
is Inherited
Find the intersection between two ScriptExtensions. Returns Unknown if things do not intersect.
“Common” (Zyyy
) and “Inherited” (Zinh
) are considered as intersecting
everything, the intersection of Common
and Inherited
is Inherited
Find the union between two ScriptExtensions.
“Common” (Zyyy
) and “Inherited” (Zinh
) are considered as intersecting
everything, the union of Common
and Inherited
is Common
Check if this ScriptExtension contains the given script
Should be used with specific scripts only, this will
return true
if self
is not Unknown
and script
is
Common
or Inherited
Get the intersection of script extensions of all characters in a string.
pub fn iter(self) -> ScriptIteratorⓘNotable traits for ScriptIteratorimpl Iterator for ScriptIterator type Item = Script;
pub fn iter(self) -> ScriptIteratorⓘNotable traits for ScriptIteratorimpl Iterator for ScriptIterator type Item = Script;
impl Iterator for ScriptIterator type Item = Script;
Iterate over the scripts in this script extension
Will never yield Script::Unknown
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.