pub struct CMapping;Expand description
The C node-mapping table as an IrMapping.
Trait Implementations§
impl Copy for CMapping
Source§impl IrMapping for CMapping
impl IrMapping for CMapping
Source§fn classify(&self, node: &Node<'_>) -> Mapping
fn classify(&self, node: &Node<'_>) -> Mapping
Decide how one CST node maps onto the IR. This table is the
granularity contract of a frontend; changing it changes fingerprint
input, which invalidates every result recorded under the old table.
Before the first release that is settled by rescanning rather than by
raising the frontend version, which stays at v1.
Auto Trait Implementations§
impl Freeze for CMapping
impl RefUnwindSafe for CMapping
impl Send for CMapping
impl Sync for CMapping
impl Unpin for CMapping
impl UnsafeUnpin for CMapping
impl UnwindSafe for CMapping
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