Struct icu::properties::props::PatternWhiteSpace
source · #[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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more