#[non_exhaustive]pub struct PirAnchorCoverage {
pub anchored: usize,
pub unanchored: usize,
}Expand description
Source-anchor coverage summary for a lowering receipt.
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.anchored: usizeNodes that preserved a concrete source range.
unanchored: usizeNodes without a concrete source range (generated, ambient, unknown).
Implementations§
Trait Implementations§
Source§impl Clone for PirAnchorCoverage
impl Clone for PirAnchorCoverage
Source§fn clone(&self) -> PirAnchorCoverage
fn clone(&self) -> PirAnchorCoverage
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 moreimpl Copy for PirAnchorCoverage
Source§impl Debug for PirAnchorCoverage
impl Debug for PirAnchorCoverage
Source§impl Default for PirAnchorCoverage
impl Default for PirAnchorCoverage
Source§fn default() -> PirAnchorCoverage
fn default() -> PirAnchorCoverage
Returns the “default value” for a type. Read more
impl Eq for PirAnchorCoverage
Source§impl PartialEq for PirAnchorCoverage
impl PartialEq for PirAnchorCoverage
Source§fn eq(&self, other: &PirAnchorCoverage) -> bool
fn eq(&self, other: &PirAnchorCoverage) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PirAnchorCoverage
Auto Trait Implementations§
impl Freeze for PirAnchorCoverage
impl RefUnwindSafe for PirAnchorCoverage
impl Send for PirAnchorCoverage
impl Sync for PirAnchorCoverage
impl Unpin for PirAnchorCoverage
impl UnsafeUnpin for PirAnchorCoverage
impl UnwindSafe for PirAnchorCoverage
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