pub struct RustRoot {
pub items: Vec<Item>,
}Expand description
Strongly-typed AST root node representing the entire Rust source file.
This is the top-level structure that contains all items (functions, statements, etc.) parsed from a Rust source file.
Fields§
§items: Vec<Item>Collection of top-level items in the Rust file
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RustRoot
impl<'de> Deserialize<'de> for RustRoot
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 Eq for RustRoot
impl StructuralPartialEq for RustRoot
Auto Trait Implementations§
impl Freeze for RustRoot
impl RefUnwindSafe for RustRoot
impl Send for RustRoot
impl Sync for RustRoot
impl Unpin for RustRoot
impl UnwindSafe for RustRoot
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