#[non_exhaustive]pub struct BodyExtractionResult {
pub body_idx: usize,
pub owner: BodyOwnerKind,
pub facts: Vec<LexicalBindingFact>,
pub anchored_node_count: usize,
pub total_node_count: usize,
}Expand description
Extraction results for a single body.
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.body_idx: usizeIndex of this body (0-based, matches position in HirFile::bodies).
owner: BodyOwnerKindOwner of this body (ProgramRoot or Subroutine).
facts: Vec<LexicalBindingFact>All lexical binding facts in this body, in lowering order.
anchored_node_count: usizeCount of nodes that had source anchors.
total_node_count: usizeTotal count of all nodes processed (anchored + non-anchored).
Trait Implementations§
Source§impl Clone for BodyExtractionResult
impl Clone for BodyExtractionResult
Source§fn clone(&self) -> BodyExtractionResult
fn clone(&self) -> BodyExtractionResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BodyExtractionResult
impl Debug for BodyExtractionResult
impl Eq for BodyExtractionResult
Source§impl PartialEq for BodyExtractionResult
impl PartialEq for BodyExtractionResult
Source§fn eq(&self, other: &BodyExtractionResult) -> bool
fn eq(&self, other: &BodyExtractionResult) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BodyExtractionResult
Auto Trait Implementations§
impl Freeze for BodyExtractionResult
impl RefUnwindSafe for BodyExtractionResult
impl Send for BodyExtractionResult
impl Sync for BodyExtractionResult
impl Unpin for BodyExtractionResult
impl UnsafeUnpin for BodyExtractionResult
impl UnwindSafe for BodyExtractionResult
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