pub struct RecoverInfo {
pub rule_name: String,
pub span: (usize, usize),
pub rule_name_span: (usize, usize),
pub sync_expr_text: String,
}Expand description
Owned representation of a @recover directive.
Fields§
§rule_name: StringThe name of the rule to wrap with recovery.
span: (usize, usize)Byte offset range of the entire recover directive.
rule_name_span: (usize, usize)Byte offset range of the rule name within the directive.
sync_expr_text: StringThe sync expression source text (e.g. ";" | "}" or /[;\n]/).
Trait Implementations§
Source§impl Clone for RecoverInfo
impl Clone for RecoverInfo
Source§fn clone(&self) -> RecoverInfo
fn clone(&self) -> RecoverInfo
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 RecoverInfo
impl RefUnwindSafe for RecoverInfo
impl Send for RecoverInfo
impl Sync for RecoverInfo
impl Unpin for RecoverInfo
impl UnsafeUnpin for RecoverInfo
impl UnwindSafe for RecoverInfo
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