pub struct AstSemanticOracle {
pub similarity_threshold: f64,
}Expand description
Basic semantic oracle using AST comparison
Fields§
§similarity_threshold: f64Similarity threshold for equivalence
Implementations§
Trait Implementations§
Source§impl Debug for AstSemanticOracle
impl Debug for AstSemanticOracle
Source§impl Default for AstSemanticOracle
impl Default for AstSemanticOracle
Source§fn default() -> AstSemanticOracle
fn default() -> AstSemanticOracle
Returns the “default value” for a type. Read more
Source§impl SemanticOracle for AstSemanticOracle
impl SemanticOracle for AstSemanticOracle
Source§fn check_equivalence(&self, source: &str, target: &str) -> SemanticVerdict
fn check_equivalence(&self, source: &str, target: &str) -> SemanticVerdict
Check semantic equivalence between source and target
Auto Trait Implementations§
impl Freeze for AstSemanticOracle
impl RefUnwindSafe for AstSemanticOracle
impl Send for AstSemanticOracle
impl Sync for AstSemanticOracle
impl Unpin for AstSemanticOracle
impl UnsafeUnpin for AstSemanticOracle
impl UnwindSafe for AstSemanticOracle
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