Struct fend_core::FendResult
source · pub struct FendResult { /* private fields */ }Expand description
This contains the result of a computation.
Implementations§
source§impl FendResult
impl FendResult
sourcepub fn get_main_result(&self) -> &str
pub fn get_main_result(&self) -> &str
This retrieves the main result of the computation.
sourcepub fn get_main_result_spans(&self) -> impl Iterator<Item = SpanRef<'_>>
pub fn get_main_result_spans(&self) -> impl Iterator<Item = SpanRef<'_>>
This retrieves the main result as a list of spans, which is useful for colored output.
sourcepub fn is_unit_type(&self) -> bool
pub fn is_unit_type(&self) -> bool
Returns whether or not the result is the () type. It can sometimes
be useful to hide these values.
Trait Implementations§
source§impl Debug for FendResult
impl Debug for FendResult
source§impl PartialEq<FendResult> for FendResult
impl PartialEq<FendResult> for FendResult
source§fn eq(&self, other: &FendResult) -> bool
fn eq(&self, other: &FendResult) -> bool
This method tests for
self and other values to be equal, and is used
by ==.