Struct icu::properties::props::PatternSyntax
source · #[non_exhaustive]pub struct PatternSyntax;
Expand description
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'));
Trait Implementations§
source§impl BinaryProperty for PatternSyntax
impl BinaryProperty for PatternSyntax
Auto Trait Implementations§
impl Freeze for PatternSyntax
impl RefUnwindSafe for PatternSyntax
impl Send for PatternSyntax
impl Sync for PatternSyntax
impl Unpin for PatternSyntax
impl UnwindSafe for PatternSyntax
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