Struct fend_core::FendResult
source · [−]pub struct FendResult { /* private fields */ }Expand description
This contains the result of a computation.
Implementations
sourceimpl 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.
sourcepub fn get_other_info(&self) -> impl Iterator<Item = &str>
👎 Deprecated
pub fn get_other_info(&self) -> impl Iterator<Item = &str>
This used to retrieve a list of other results of the computation, but now returns an empty iterator. This method is deprecated and may be removed in a future release.
Trait Implementations
sourceimpl Debug for FendResult
impl Debug for FendResult
sourceimpl PartialEq<FendResult> for FendResult
impl PartialEq<FendResult> for FendResult
sourcefn 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 ==. Read more
sourcefn ne(&self, other: &FendResult) -> bool
fn ne(&self, other: &FendResult) -> bool
This method tests for !=.
impl Eq for FendResult
impl StructuralEq for FendResult
impl StructuralPartialEq for FendResult
Auto Trait Implementations
impl RefUnwindSafe for FendResult
impl Send for FendResult
impl Sync for FendResult
impl Unpin for FendResult
impl UnwindSafe for FendResult
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more