#[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
impl<T> ErasedDestructor for Twhere
T: 'static,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 0 bytes