pub struct AstResult {
pub name: String,
pub args: Vec<String>,
pub return_type: Option<String>,
pub span: Option<(usize, usize)>,
}Expand description
A single AST query result.
Fields§
§name: StringName of the matched item (function name, struct name, etc.)
args: Vec<String>Function arguments/parameters (as string)
return_type: Option<String>Return type (as string)
span: Option<(usize, usize)>Span: (start_line, end_line)
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AstResult
impl<'de> Deserialize<'de> for AstResult
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
impl StructuralPartialEq for AstResult
Auto Trait Implementations§
impl Freeze for AstResult
impl RefUnwindSafe for AstResult
impl Send for AstResult
impl Sync for AstResult
impl Unpin for AstResult
impl UnsafeUnpin for AstResult
impl UnwindSafe for AstResult
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