Struct WhiteSpace

struct WhiteSpace

Spaces, separator characters and other control characters which should be treated by programming languages as "white space" for the purpose of parsing elements.

Example

use icu::properties::CodePointSetData;
use icu::properties::props::WhiteSpace;

let white_space = CodePointSetData::new::<WhiteSpace>();

assert!(white_space.contains(' '));
assert!(white_space.contains('\u{000A}'));  // NEW LINE
assert!(white_space.contains('\u{00A0}'));  // NO-BREAK SPACE
assert!(!white_space.contains('\u{200B}'));  // ZERO WIDTH SPACE

Implementations

impl BinaryProperty for WhiteSpace

impl Debug for WhiteSpace

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

impl Freeze for WhiteSpace

impl RefUnwindSafe for WhiteSpace

impl Send for WhiteSpace

impl Sync for WhiteSpace

impl Unpin for WhiteSpace

impl UnsafeUnpin for WhiteSpace

impl UnwindSafe for WhiteSpace

impl<T> Any for WhiteSpace

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for WhiteSpace

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

impl<T> BorrowMut for WhiteSpace

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

impl<T> ErasedDestructor for WhiteSpace

impl<T> From for WhiteSpace

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into for WhiteSpace

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 WhiteSpace

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

impl<T, U> TryInto for WhiteSpace

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