pub struct SimilarFunctionsResult {
pub same_category: Vec<FunctionDetail>,
pub similar_signature: Vec<FunctionDetail>,
pub related_concepts: Vec<FunctionDetail>,
}Expand description
Result from finding functions similar to a given function.
Groups similar functions by relationship type: same category, similar signature, or related concepts in descriptions.
§Example
use jpx_engine::JpxEngine;
let engine = JpxEngine::new();
let similar = engine.similar_functions("upper").unwrap();
// Functions in the same category (String)
for f in &similar.same_category {
println!("Same category: {}", f.name);
}
// Functions with similar signatures
for f in &similar.similar_signature {
println!("Similar signature: {}", f.name);
}Fields§
§same_category: Vec<FunctionDetail>Functions in the same category as the target
similar_signature: Vec<FunctionDetail>Functions with similar parameter/return types
Functions with overlapping description keywords
Trait Implementations§
Source§impl Clone for SimilarFunctionsResult
impl Clone for SimilarFunctionsResult
Source§fn clone(&self) -> SimilarFunctionsResult
fn clone(&self) -> SimilarFunctionsResult
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 SimilarFunctionsResult
impl Debug for SimilarFunctionsResult
Source§impl<'de> Deserialize<'de> for SimilarFunctionsResult
impl<'de> Deserialize<'de> for SimilarFunctionsResult
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 SimilarFunctionsResult
impl RefUnwindSafe for SimilarFunctionsResult
impl Send for SimilarFunctionsResult
impl Sync for SimilarFunctionsResult
impl Unpin for SimilarFunctionsResult
impl UnwindSafe for SimilarFunctionsResult
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<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