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
Available on crate feature std
only.
impl Error for UnicodeWordBoundaryError
Available on crate feature
std
only.1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)