Struct XidStart

struct XidStart

Characters that can begin an identifier.

See Unicode Standard Annex #31 for more details.

Example

use icu::properties::CodePointSetData;
use icu::properties::props::XidStart;

let xid_start = CodePointSetData::new::<XidStart>();

assert!(xid_start.contains('x'));
assert!(!xid_start.contains('1'));
assert!(!xid_start.contains('_'));
assert!(xid_start.contains('ߝ'));  // U+07DD NKO LETTER FA
assert!(!xid_start.contains(''));  // U+24E7 CIRCLED LATIN SMALL LETTER X
assert!(!xid_start.contains('\u{FC5E}'));  // ARABIC LIGATURE SHADDA WITH DAMMATAN ISOLATED FORM

Implementations

impl BinaryProperty for XidStart

impl Debug for XidStart

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

impl Freeze for XidStart

impl RefUnwindSafe for XidStart

impl Send for XidStart

impl Sync for XidStart

impl Unpin for XidStart

impl UnsafeUnpin for XidStart

impl UnwindSafe for XidStart

impl<T> Any for XidStart

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for XidStart

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

impl<T> BorrowMut for XidStart

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

impl<T> ErasedDestructor for XidStart

impl<T> From for XidStart

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into for XidStart

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 XidStart

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

impl<T, U> TryInto for XidStart

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