Struct IdStart

struct IdStart

Characters that can begin an identifier.

If using NFKC to fold differences between characters, use XidStart instead. See Unicode Standard Annex #31 for more details.

Example

use icu::properties::CodePointSetData;
use icu::properties::props::IdStart;

let id_start = CodePointSetData::new::<IdStart>();

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

Implementations

impl BinaryProperty for IdStart

impl Debug for IdStart

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

impl Freeze for IdStart

impl RefUnwindSafe for IdStart

impl Send for IdStart

impl Sync for IdStart

impl Unpin for IdStart

impl UnsafeUnpin for IdStart

impl UnwindSafe for IdStart

impl<T> Any for IdStart

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for IdStart

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

impl<T> BorrowMut for IdStart

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

impl<T> ErasedDestructor for IdStart

impl<T> From for IdStart

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into for IdStart

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 IdStart

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

impl<T, U> TryInto for IdStart

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