pub struct PythonAST {
pub node_type: String,
pub lineno: Option<usize>,
pub col_offset: Option<usize>,
pub children: Vec<PythonAST>,
pub attributes: HashMap<String, String>,
}Expand description
Python AST node (simplified representation)
Fields§
§node_type: StringNode type (e.g., “Module”, “FunctionDef”, “Call”)
lineno: Option<usize>Line number
col_offset: Option<usize>Column offset
children: Vec<PythonAST>Child nodes
attributes: HashMap<String, String>Node attributes (name, value, etc.)
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PythonAST
impl<'de> Deserialize<'de> for PythonAST
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PythonAST
impl RefUnwindSafe for PythonAST
impl Send for PythonAST
impl Sync for PythonAST
impl Unpin for PythonAST
impl UnwindSafe for PythonAST
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