#[non_exhaustive]pub struct RunOutcome {
pub type_name: String,
pub value: Option<String>,
pub mutated: bool,
}Expand description
The outcome of running a VBA procedure: its return value, rendered the way
VBA would render it, plus the subtype name TypeName() reports.
Both halves matter. An interpreter that computes the right number with the
wrong subtype has a real bug – 1 + 1 is an Integer and 1 / 1 is a
Double – so the differential fuzzer compares the type as well as the
value.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.type_name: StringTypeName() of the returned value.
value: Option<String>CStr() of the returned value, or None where VBA itself cannot
stringify it (Null).
mutated: boolWhether the run changed the workbook.
Always false from run_macro, which has no workbook to change.
From crate::core::WorkbookManager::run_macro this is what tells a caller
whether it has something worth saving – and, for the visi CLI,
whether discarding the result silently would be a data loss rather
than a no-op.
Trait Implementations§
Source§impl Clone for RunOutcome
impl Clone for RunOutcome
Source§fn clone(&self) -> RunOutcome
fn clone(&self) -> RunOutcome
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RunOutcome
impl Debug for RunOutcome
impl Eq for RunOutcome
Source§impl PartialEq for RunOutcome
impl PartialEq for RunOutcome
impl StructuralPartialEq for RunOutcome
Auto Trait Implementations§
impl Freeze for RunOutcome
impl RefUnwindSafe for RunOutcome
impl Send for RunOutcome
impl Sync for RunOutcome
impl Unpin for RunOutcome
impl UnsafeUnpin for RunOutcome
impl UnwindSafe for RunOutcome
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.