Skip to main content

ConditionData

Type Alias ConditionData 

Source
pub type ConditionData = Vec<(String, RValue)>;
Expand description

Named condition-data payload: an ordered list of (name, value) pairs.

Produced by the macros’ data = ... form and consumed by crate::error_value::make_rust_condition_value. Each value is an RValue — an owned, Send, R-native value tree. Send-safe by construction (no live SEXP), so the payload can travel through panic_any and cross the worker→main thread boundary; the R objects are materialised on the main thread at the unwind boundary.

The macros accept any value with RValue: From<_> (scalars and Vecs of i32 / f64 / bool / String / &str; their NA-aware Option / Vec<Option<_>> forms; the i64 / u32 wide-integer ladder); a scalar 7i32 becomes integer(1) and a Vec<i32> becomes integer(n). Any T: Debug rides along via RValue::debug. For nested lists or complex/raw values build an RValue directly.

Aliased Type§

pub struct ConditionData { /* private fields */ }

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 24 bytes