#[non_exhaustive]pub struct FileStructData {
pub node: NodeId,
pub kind: String,
pub data: FileStructValue,
pub node_range: Option<Vec<NodeId>>,
}Expand description
One entry of a file’s structure tree (its classes, methods and nesting).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.node: NodeIdId of the AST node this entry was built from.
kind: StringThe entry’s syntax-node label, e.g. "MethodDeclaration".
data: FileStructValueThe entry’s payload: a leaf value or further nested entries.
node_range: Option<Vec<NodeId>>Ids of every AST node this entry spans, when known.
Trait Implementations§
Source§impl Clone for FileStructData
impl Clone for FileStructData
Source§impl Debug for FileStructData
impl Debug for FileStructData
impl Eq for FileStructData
Source§impl PartialEq for FileStructData
impl PartialEq for FileStructData
impl StructuralPartialEq for FileStructData
Auto Trait Implementations§
impl Forget for FileStructData
impl Freeze for FileStructData
impl RefUnwindSafe for FileStructData
impl Send for FileStructData
impl Sync for FileStructData
impl Unpin for FileStructData
impl UnsafeUnpin for FileStructData
impl UnwindSafe for FileStructData
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