pub struct HirCapture {
pub index: u32,
pub name: Option<String>,
pub expr: HirExpr,
}Expand description
A capture group in HIR.
Fields§
§index: u32Capture group index.
name: Option<String>Optional name.
expr: HirExprThe captured expression.
Trait Implementations§
Source§impl Clone for HirCapture
impl Clone for HirCapture
Source§fn clone(&self) -> HirCapture
fn clone(&self) -> HirCapture
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for HirCapture
impl RefUnwindSafe for HirCapture
impl Send for HirCapture
impl Sync for HirCapture
impl Unpin for HirCapture
impl UnwindSafe for HirCapture
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