pub enum Algorithm {
Rank(RankAlgorithm),
Cluster(ClusterAlgorithm),
Similar(SimilarAlgorithm),
Paths(PathAlgorithm),
Analyze(AnalyzeAlgorithm),
}Expand description
A typed algorithm from any analyst verb.
Variants§
Rank(RankAlgorithm)
Rank algorithm.
Cluster(ClusterAlgorithm)
Cluster algorithm.
Similar(SimilarAlgorithm)
Similarity algorithm.
Paths(PathAlgorithm)
Path algorithm.
Analyze(AnalyzeAlgorithm)
Analysis algorithm.
Implementations§
Source§impl Algorithm
impl Algorithm
Sourcepub fn parse(verb: AlgorithmVerb, value: &str) -> Result<Self, GfError>
pub fn parse(verb: AlgorithmVerb, value: &str) -> Result<Self, GfError>
Parse a public by= value in the namespace of its verb.
Sourcepub const fn verb(self) -> AlgorithmVerb
pub const fn verb(self) -> AlgorithmVerb
Owning public verb.
Sourcepub const fn result_schema(self) -> AlgorithmResultSchema
pub const fn result_schema(self) -> AlgorithmResultSchema
Stable logical result schema required from every language surface.
Trait Implementations§
impl Copy for Algorithm
impl Eq for Algorithm
impl StructuralPartialEq for Algorithm
Auto Trait Implementations§
impl Freeze for Algorithm
impl RefUnwindSafe for Algorithm
impl Send for Algorithm
impl Sync for Algorithm
impl Unpin for Algorithm
impl UnsafeUnpin for Algorithm
impl UnwindSafe for Algorithm
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.