Struct UnicodeWordBoundaryError

pub struct UnicodeWordBoundaryError(/* private field */);

An error that occurs when the Unicode-aware \w class is unavailable.

This error can occur when the data tables necessary for the Unicode aware Perl character class \w are unavailable. The \w class is used to determine whether a codepoint is considered a word character or not when determining whether a Unicode aware \b (or \B) matches at a particular position.

This error can only occur when the unicode-word-boundary feature is disabled.

Implementations

impl UnicodeWordBoundaryError

fn check() -> Result<(), UnicodeWordBoundaryError>

Returns an error if and only if Unicode word boundary data is unavailable.

Trait Implementations

impl Clone for UnicodeWordBoundaryError

fn clone(&self) -> Self

impl Debug for UnicodeWordBoundaryError

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

impl Display for UnicodeWordBoundaryError

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

impl Error for UnicodeWordBoundaryError

Auto Trait Implementations

impl Freeze for UnicodeWordBoundaryError

impl RefUnwindSafe for UnicodeWordBoundaryError

impl Send for UnicodeWordBoundaryError

impl Sync for UnicodeWordBoundaryError

impl Unpin for UnicodeWordBoundaryError

impl UnsafeUnpin for UnicodeWordBoundaryError

impl UnwindSafe for UnicodeWordBoundaryError

Blanket Implementations

impl<T> Any for UnicodeWordBoundaryError where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for UnicodeWordBoundaryError where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for UnicodeWordBoundaryError where T: ?Sized,

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

impl<T> CloneToUninit for UnicodeWordBoundaryError where T: Clone,

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for UnicodeWordBoundaryError

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for UnicodeWordBoundaryError where T: Clone,

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

impl<T> ToString for UnicodeWordBoundaryError where T: Display + ?Sized,

fn to_string(&self) -> String

impl<T, U> Into<U> for UnicodeWordBoundaryError where U: From<T>,

fn into(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<U> for UnicodeWordBoundaryError where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for UnicodeWordBoundaryError where U: TryFrom<T>,

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