pub struct ClassBracketed {
pub span: Span,
pub negated: bool,
pub kind: ClassSet,
}
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§
Source§impl Clone for ClassBracketed
impl Clone for ClassBracketed
Source§fn clone(&self) -> ClassBracketed
fn clone(&self) -> ClassBracketed
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 ClassBracketed
impl Debug for ClassBracketed
Source§impl PartialEq for ClassBracketed
impl PartialEq for ClassBracketed
impl Eq for ClassBracketed
impl StructuralPartialEq for ClassBracketed
Auto Trait Implementations§
impl Freeze for ClassBracketed
impl RefUnwindSafe for ClassBracketed
impl Send for ClassBracketed
impl Sync for ClassBracketed
impl Unpin for ClassBracketed
impl UnwindSafe for ClassBracketed
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
)