Struct PatternWhiteSpace

struct PatternWhiteSpace

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

Implementations

impl BinaryProperty for PatternWhiteSpace

impl Debug for PatternWhiteSpace

fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result

impl Freeze for PatternWhiteSpace

impl RefUnwindSafe for PatternWhiteSpace

impl Send for PatternWhiteSpace

impl Sync for PatternWhiteSpace

impl Unpin for PatternWhiteSpace

impl UnsafeUnpin for PatternWhiteSpace

impl UnwindSafe for PatternWhiteSpace

impl<T> Any for PatternWhiteSpace

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for PatternWhiteSpace

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for PatternWhiteSpace

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> ErasedDestructor for PatternWhiteSpace

impl<T> From for PatternWhiteSpace

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into for PatternWhiteSpace

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for PatternWhiteSpace

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for PatternWhiteSpace

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>