Struct regex_automata::util::look::UnicodeWordBoundaryError
source · pub struct UnicodeWordBoundaryError(/* private fields */);
Expand description
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§
source§impl UnicodeWordBoundaryError
impl UnicodeWordBoundaryError
sourcepub fn check() -> Result<(), UnicodeWordBoundaryError>
pub fn check() -> Result<(), UnicodeWordBoundaryError>
Returns an error if and only if Unicode word boundary data is unavailable.
Trait Implementations§
source§impl Clone for UnicodeWordBoundaryError
impl Clone for UnicodeWordBoundaryError
source§fn clone(&self) -> UnicodeWordBoundaryError
fn clone(&self) -> UnicodeWordBoundaryError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for UnicodeWordBoundaryError
impl Debug for UnicodeWordBoundaryError
source§impl Display for UnicodeWordBoundaryError
impl Display for UnicodeWordBoundaryError
source§impl Error for UnicodeWordBoundaryError
impl Error for UnicodeWordBoundaryError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for UnicodeWordBoundaryError
impl RefUnwindSafe for UnicodeWordBoundaryError
impl Send for UnicodeWordBoundaryError
impl Sync for UnicodeWordBoundaryError
impl Unpin for UnicodeWordBoundaryError
impl UnwindSafe for UnicodeWordBoundaryError
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)