pub struct ContextXamlAstVisitor<'a, C: IContextXamlAstVisitorCore> { /* private fields */ }Expand description
A visitor bound to a transformation context: it maintains the parent stack and converts transformer failures into diagnostics, replacing the failed node with a “skip” node when the diagnostics handler does not treat the error as fatal.
Implementations§
Source§impl<'a, C: IContextXamlAstVisitorCore> ContextXamlAstVisitor<'a, C>
impl<'a, C: IContextXamlAstVisitorCore> ContextXamlAstVisitor<'a, C>
pub fn new(context: &'a AstTransformationContext, core: C) -> Self
Trait Implementations§
Source§impl<C: IContextXamlAstVisitorCore> IXamlAstVisitor for ContextXamlAstVisitor<'_, C>
impl<C: IContextXamlAstVisitorCore> IXamlAstVisitor for ContextXamlAstVisitor<'_, C>
fn visit( &mut self, node: Rc<dyn IXamlAstNode>, ) -> XamlResult<Rc<dyn IXamlAstNode>>
fn push(&mut self, node: Rc<dyn IXamlAstNode>)
fn pop(&mut self)
Auto Trait Implementations§
impl<'a, C> !RefUnwindSafe for ContextXamlAstVisitor<'a, C>
impl<'a, C> !Send for ContextXamlAstVisitor<'a, C>
impl<'a, C> !Sync for ContextXamlAstVisitor<'a, C>
impl<'a, C> !UnwindSafe for ContextXamlAstVisitor<'a, C>
impl<'a, C> Freeze for ContextXamlAstVisitor<'a, C>where
C: Freeze,
impl<'a, C> Unpin for ContextXamlAstVisitor<'a, C>where
C: Unpin,
impl<'a, C> UnsafeUnpin for ContextXamlAstVisitor<'a, C>where
C: UnsafeUnpin,
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