pub struct MatchInfo {
pub lhs_postfix: String,
pub rhs_postfix: String,
pub lhs_infix: String,
pub rhs_infix: String,
pub error: f64,
pub is_exact: bool,
pub complexity: u32,
pub x_value: f64,
pub stability: Option<f64>,
}Expand description
Match result information
Fields§
§lhs_postfix: StringLHS expression (postfix)
rhs_postfix: StringRHS expression (postfix)
lhs_infix: StringLHS expression (infix)
rhs_infix: StringRHS expression (infix)
error: f64Error (absolute)
is_exact: boolWhether this is an exact match
complexity: u32Complexity score
x_value: f64X value that solves the equation
stability: Option<f64>Stability score (0-1, higher is better)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MatchInfo
impl<'de> Deserialize<'de> for MatchInfo
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 MatchInfo
impl RefUnwindSafe for MatchInfo
impl Send for MatchInfo
impl Sync for MatchInfo
impl Unpin for MatchInfo
impl UnsafeUnpin for MatchInfo
impl UnwindSafe for MatchInfo
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