Struct PatternSyntax

struct PatternSyntax

Characters used as syntax in patterns (such as regular expressions).

See Unicode Standard Annex #31 for more details.

Example

use icu::properties::CodePointSetData;
use icu::properties::props::PatternSyntax;

let pattern_syntax = CodePointSetData::new::<PatternSyntax>();

assert!(pattern_syntax.contains('{'));
assert!(pattern_syntax.contains(''));  // U+21D2 RIGHTWARDS DOUBLE ARROW
assert!(!pattern_syntax.contains('0'));

Implementations

impl BinaryProperty for PatternSyntax

impl Debug for PatternSyntax

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

impl Freeze for PatternSyntax

impl RefUnwindSafe for PatternSyntax

impl Send for PatternSyntax

impl Sync for PatternSyntax

impl Unpin for PatternSyntax

impl UnsafeUnpin for PatternSyntax

impl UnwindSafe for PatternSyntax

impl<T> Any for PatternSyntax

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for PatternSyntax

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

impl<T> BorrowMut for PatternSyntax

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

impl<T> ErasedDestructor for PatternSyntax

impl<T> From for PatternSyntax

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into for PatternSyntax

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 PatternSyntax

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

impl<T, U> TryInto for PatternSyntax

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