pub struct RewriteCtx<'a, L: Lang> {
pub lang: &'a mut L,
/* private fields */
}Expand description
规则上下文:语言 AST 的可变访问 + 当前扫描的父/序号信息。
Fields§
§lang: &'a mut LImplementations§
Auto Trait Implementations§
impl<'a, L> !UnwindSafe for RewriteCtx<'a, L>
impl<'a, L> Freeze for RewriteCtx<'a, L>
impl<'a, L> RefUnwindSafe for RewriteCtx<'a, L>
impl<'a, L> Send for RewriteCtx<'a, L>
impl<'a, L> Sync for RewriteCtx<'a, L>
impl<'a, L> Unpin for RewriteCtx<'a, L>
impl<'a, L> UnsafeUnpin for RewriteCtx<'a, L>
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