pub struct SymbolIndex { /* private fields */ }Expand description
Project-wide symbol index assembled from every scanned file.
Implementations§
Source§impl SymbolIndex
impl SymbolIndex
Sourcepub fn build<'a, I>(contributions: I) -> Self
pub fn build<'a, I>(contributions: I) -> Self
Fold every file’s contribution into one index keyed by bare trait name.
Impls are counted for every scanned file, test code included: a trait with one production impl plus a test mock is the legitimate “trait exists to be mocked” pattern, and the mock counting as a second impl is what suppresses the dominant false positive.
Trait Implementations§
Source§impl Debug for SymbolIndex
impl Debug for SymbolIndex
Auto Trait Implementations§
impl Freeze for SymbolIndex
impl RefUnwindSafe for SymbolIndex
impl Send for SymbolIndex
impl Sync for SymbolIndex
impl Unpin for SymbolIndex
impl UnsafeUnpin for SymbolIndex
impl UnwindSafe for SymbolIndex
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more