Enum regex_syntax::ast::HexLiteralKind
source · [−]pub enum HexLiteralKind {
X,
UnicodeShort,
UnicodeLong,
}
Expand description
The type of a Unicode hex literal.
Note that all variants behave the same when used with brackets. They only differ when used without brackets in the number of hex digits that must follow.
Variants
X
A \x
prefix. When used without brackets, this form is limited to
two digits.
UnicodeShort
A \u
prefix. When used without brackets, this form is limited to
four digits.
UnicodeLong
A \U
prefix. When used without brackets, this form is limited to
eight digits.
Implementations
sourceimpl HexLiteralKind
impl HexLiteralKind
Trait Implementations
sourceimpl Clone for HexLiteralKind
impl Clone for HexLiteralKind
sourcefn clone(&self) -> HexLiteralKind
fn clone(&self) -> HexLiteralKind
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for HexLiteralKind
impl Debug for HexLiteralKind
sourceimpl PartialEq<HexLiteralKind> for HexLiteralKind
impl PartialEq<HexLiteralKind> for HexLiteralKind
impl Eq for HexLiteralKind
impl StructuralEq for HexLiteralKind
impl StructuralPartialEq for HexLiteralKind
Auto Trait Implementations
impl RefUnwindSafe for HexLiteralKind
impl Send for HexLiteralKind
impl Sync for HexLiteralKind
impl Unpin for HexLiteralKind
impl UnwindSafe for HexLiteralKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more