pub enum Ranking {
FanIn,
FanOut,
Definitions,
}Expand description
What GraphStore::top ranks by.
Variants§
FanIn
Number of references to the name — how heavily it is called.
FanOut
Number of distinct names called from within it.
Definitions
Number of definitions of the name. A score above 1 means the name is ambiguous, which is what makes name-matched traversal unreliable.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Ranking
impl<'de> Deserialize<'de> for Ranking
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 Copy for Ranking
impl Eq for Ranking
impl StructuralPartialEq for Ranking
Auto Trait Implementations§
impl Freeze for Ranking
impl RefUnwindSafe for Ranking
impl Send for Ranking
impl Sync for Ranking
impl Unpin for Ranking
impl UnsafeUnpin for Ranking
impl UnwindSafe for Ranking
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