pub struct PreprocCode { /* private fields */ }Trait Implementations§
Source§impl Alterator for PreprocCode
impl Alterator for PreprocCode
Source§fn alterate(
node: &Node<'_>,
code: &[u8],
span: bool,
children: Vec<AstNode>,
) -> AstNode
fn alterate( node: &Node<'_>, code: &[u8], span: bool, children: Vec<AstNode>, ) -> AstNode
Creates a new
AST node containing the code associated to the node,
its span, and its children. Read moreSource§fn get_text_span(
node: &Node<'_>,
code: &[u8],
span: bool,
text: bool,
) -> (String, Span)
fn get_text_span( node: &Node<'_>, code: &[u8], span: bool, text: bool, ) -> (String, Span)
Gets the code as text and the span associated to a node.
Source§impl Cognitive for PreprocCode
impl Cognitive for PreprocCode
Source§impl Cyclomatic for PreprocCode
impl Cyclomatic for PreprocCode
Source§impl Halstead for PreprocCode
impl Halstead for PreprocCode
Source§impl LanguageInfo for PreprocCode
impl LanguageInfo for PreprocCode
Source§impl Loc for PreprocCode
impl Loc for PreprocCode
Source§impl Mi for PreprocCode
impl Mi for PreprocCode
Auto Trait Implementations§
impl Freeze for PreprocCode
impl RefUnwindSafe for PreprocCode
impl Send for PreprocCode
impl Sync for PreprocCode
impl Unpin for PreprocCode
impl UnsafeUnpin for PreprocCode
impl UnwindSafe for PreprocCode
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