#[non_exhaustive]pub struct PatternWhiteSpace;
Expand description
Characters used as whitespace in patterns (such as regular expressions).
See
Unicode Standard Annex #31
for
more details.
§Example
use icu::properties::CodePointSetData;
use icu::properties::props::PatternWhiteSpace;
let pattern_white_space = CodePointSetData::new::<PatternWhiteSpace>();
assert!(pattern_white_space.contains(' '));
assert!(pattern_white_space.contains('\u{2029}')); // PARAGRAPH SEPARATOR
assert!(pattern_white_space.contains('\u{000A}')); // NEW LINE
assert!(!pattern_white_space.contains('\u{00A0}')); // NO-BREAK SPACE
Trait Implementations§
Source§impl BinaryProperty for PatternWhiteSpace
impl BinaryProperty for PatternWhiteSpace
Auto Trait Implementations§
impl Freeze for PatternWhiteSpace
impl RefUnwindSafe for PatternWhiteSpace
impl Send for PatternWhiteSpace
impl Sync for PatternWhiteSpace
impl Unpin for PatternWhiteSpace
impl UnwindSafe for PatternWhiteSpace
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more