Struct regex_syntax::ast::ClassBracketed
source · [−]Expand description
A bracketed character class, e.g., [a-z0-9]
.
Fields
span: Span
The span of this class.
negated: bool
Whether this class is negated or not. e.g., [a]
is not negated but
[^a]
is.
kind: ClassSet
The type of this set. A set is either a normal union of things, e.g.,
[abc]
or a result of applying set operations, e.g., [\pL--c]
.
Trait Implementations
sourceimpl Clone for ClassBracketed
impl Clone for ClassBracketed
sourcefn clone(&self) -> ClassBracketed
fn clone(&self) -> ClassBracketed
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 ClassBracketed
impl Debug for ClassBracketed
sourceimpl PartialEq<ClassBracketed> for ClassBracketed
impl PartialEq<ClassBracketed> for ClassBracketed
sourcefn eq(&self, other: &ClassBracketed) -> bool
fn eq(&self, other: &ClassBracketed) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ClassBracketed) -> bool
fn ne(&self, other: &ClassBracketed) -> bool
This method tests for !=
.
impl Eq for ClassBracketed
impl StructuralEq for ClassBracketed
impl StructuralPartialEq for ClassBracketed
Auto Trait Implementations
impl RefUnwindSafe for ClassBracketed
impl Send for ClassBracketed
impl Sync for ClassBracketed
impl Unpin for ClassBracketed
impl UnwindSafe for ClassBracketed
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