Enum vte4::RegexError
source · #[non_exhaustive]pub enum RegexError {
Incompatible,
NotSupported,
}
Expand description
An enum type for regex errors. In addition to the values listed above, any PCRE2 error values may occur.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Incompatible
The PCRE2 library was built without Unicode support which is required for VTE
NotSupported
Regexes are not supported because VTE was built without PCRE2 support
Trait Implementations§
source§impl Clone for RegexError
impl Clone for RegexError
source§fn clone(&self) -> RegexError
fn clone(&self) -> RegexError
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 RegexError
impl Debug for RegexError
source§impl ErrorDomain for RegexError
impl ErrorDomain for RegexError
source§impl From<RegexError> for Value
impl From<RegexError> for Value
source§fn from(v: RegexError) -> Self
fn from(v: RegexError) -> Self
Converts to this type from the input type.
source§impl<'a> FromValue<'a> for RegexError
impl<'a> FromValue<'a> for RegexError
§type Checker = GenericValueTypeChecker<RegexError>
type Checker = GenericValueTypeChecker<RegexError>
Value type checker.
source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a
Value
. Read moresource§impl HasParamSpec for RegexError
impl HasParamSpec for RegexError
type ParamSpec = ParamSpecEnum
§type SetValue = RegexError
type SetValue = RegexError
Preferred value to be used as setter for the associated ParamSpec.
type BuilderFn = fn(_: &str, _: RegexError) -> ParamSpecEnumBuilder<'_, RegexError>
fn param_spec_builder() -> Self::BuilderFn
source§impl Hash for RegexError
impl Hash for RegexError
source§impl Ord for RegexError
impl Ord for RegexError
source§fn cmp(&self, other: &RegexError) -> Ordering
fn cmp(&self, other: &RegexError) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for RegexError
impl PartialEq for RegexError
source§fn eq(&self, other: &RegexError) -> bool
fn eq(&self, other: &RegexError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for RegexError
impl PartialOrd for RegexError
source§fn partial_cmp(&self, other: &RegexError) -> Option<Ordering>
fn partial_cmp(&self, other: &RegexError) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl StaticType for RegexError
impl StaticType for RegexError
source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.source§impl ToValue for RegexError
impl ToValue for RegexError
source§impl ValueType for RegexError
impl ValueType for RegexError
§type Type = RegexError
type Type = RegexError
Type to get the
Type
from. Read moreimpl Copy for RegexError
impl Eq for RegexError
impl StructuralPartialEq for RegexError
Auto Trait Implementations§
impl Freeze for RegexError
impl RefUnwindSafe for RegexError
impl Send for RegexError
impl Sync for RegexError
impl Unpin for RegexError
impl UnwindSafe for RegexError
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
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
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
)source§impl<T> IntoClosureReturnValue for T
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
source§impl<T> PropertyGet for Twhere
T: HasParamSpec,
impl<T> PropertyGet for Twhere
T: HasParamSpec,
source§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
source§fn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.