icu_properties::sets

Function math

Source
pub const fn math() -> CodePointSetDataBorrowed<'static>
Expand description

Characters used in mathematical notation

โœจ Enabled with the compiled_data Cargo feature.

๐Ÿ“š Help choosing a constructor

ยงExample

use icu::properties::sets;

let math = sets::math();

assert!(math.contains('='));
assert!(math.contains('+'));
assert!(!math.contains('-'));
assert!(math.contains('โˆ’'));  // U+2212 MINUS SIGN
assert!(!math.contains('/'));
assert!(math.contains('โˆ•'));  // U+2215 DIVISION SLASH