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.
Such a change raises the structural frontend version, so results from
different tables never share a fingerprint space.
Source§fn node_name<'s>(&self, node: &Node<'_>, source: &'s str) -> Option<&'s str>
fn node_name<'s>(&self, node: &Node<'_>, source: &'s str) -> Option<&'s str>
Recover the declared name of a node that emits a named shape.
Source§fn keywords(&self) -> &'static [&'static str]
fn keywords(&self) -> &'static [&'static str]
The dialect’s reserved words: the same set the Fast lexer reads a
keyword off.
classify_token reconciles the grammar’s view of a leaf
with this set, so the two modes cannot disagree about what a reserved
word is.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