pub enum PathScoringMethod {
Length,
EdgeWeight,
PageRank,
Combined(Vec<PathScoringFactor>),
}Expand description
Path scoring methods
Variants§
Length
Simple path length-based scoring
EdgeWeight
Edge weight-based scoring
PageRank
PageRank-based scoring
Combined(Vec<PathScoringFactor>)
Combined scoring using multiple factors
Implementations§
Source§impl PathScoringMethod
impl PathScoringMethod
Sourcepub fn uses_pagerank(&self) -> bool
pub fn uses_pagerank(&self) -> bool
Check if this scoring method uses PageRank
Trait Implementations§
Source§impl Clone for PathScoringMethod
impl Clone for PathScoringMethod
Source§fn clone(&self) -> PathScoringMethod
fn clone(&self) -> PathScoringMethod
Returns a duplicate of the value. Read more
1.0.0 · 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 PathScoringMethod
impl Debug for PathScoringMethod
Source§impl<'de> Deserialize<'de> for PathScoringMethod
impl<'de> Deserialize<'de> for PathScoringMethod
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
Auto Trait Implementations§
impl Freeze for PathScoringMethod
impl RefUnwindSafe for PathScoringMethod
impl Send for PathScoringMethod
impl Sync for PathScoringMethod
impl Unpin for PathScoringMethod
impl UnwindSafe for PathScoringMethod
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