pub struct PythonCode { /* private fields */ }Trait Implementations§
Source§impl Alterator for PythonCode
impl Alterator for PythonCode
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 PythonCode
impl Cognitive for PythonCode
Source§impl Cyclomatic for PythonCode
impl Cyclomatic for PythonCode
Source§impl Halstead for PythonCode
impl Halstead for PythonCode
Source§impl LanguageInfo for PythonCode
impl LanguageInfo for PythonCode
Source§impl Loc for PythonCode
impl Loc for PythonCode
Source§impl Mi for PythonCode
impl Mi for PythonCode
Auto Trait Implementations§
impl Freeze for PythonCode
impl RefUnwindSafe for PythonCode
impl Send for PythonCode
impl Sync for PythonCode
impl Unpin for PythonCode
impl UnsafeUnpin for PythonCode
impl UnwindSafe for PythonCode
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