wolfram-expr 0.6.0

Efficient and ergonomic representation of Wolfram expressions in Rust
Documentation
//! Auto-generated by tests/fixtures/generate.wls — do NOT edit by hand.
//!
//! Each constant is the canonical WXF byte sequence produced by the Wolfram
//! kernel's `BinarySerialize` for the input shown in its docstring. Tests
//! consume these fixtures to verify our WXF parser against kernel output
//! without needing a runtime wolframscript invocation.
//!
//! Regenerate with:
//!   `wolframscript -file tests/fixtures/generate.wls`

/// `42`
#[rustfmt::skip]
pub const INTEGER_42: &[u8] = &[0x38, 0x3a, 0x43, 0x2a];
/// `-1234567890`
#[rustfmt::skip]
pub const INTEGER_NEG_LARGE: &[u8] = &[0x38, 0x3a, 0x69, 0x2e, 0xfd, 0x69, 0xb6];
/// `3.5`
#[rustfmt::skip]
pub const REAL_3_5: &[u8] = &[0x38, 0x3a, 0x72, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x40];
/// `"hello"`
#[rustfmt::skip]
pub const STRING_HELLO: &[u8] = &[0x38, 0x3a, 0x53, 0x05, 0x68, 0x65, 0x6c, 0x6c, 0x6f];
/// `Plus`
#[rustfmt::skip]
pub const SYMBOL_PLUS: &[u8] = &[0x38, 0x3a, 0x73, 0x04, 0x50, 0x6c, 0x75, 0x73];
/// `MyPkg`x`
#[rustfmt::skip]
pub const SYMBOL_MYPKG_X: &[u8] = &[0x38, 0x3a, 0x73, 0x07, 0x4d, 0x79, 0x50, 0x6b, 0x67, 0x60, 0x78];
/// `{1, 2, 3}`
#[rustfmt::skip]
pub const LIST_INTS: &[u8] = &[0x38, 0x3a, 0x66, 0x03, 0x73, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x01, 0x43, 0x02, 0x43, 0x03];
/// `{}`
#[rustfmt::skip]
pub const LIST_EMPTY: &[u8] = &[0x38, 0x3a, 0x66, 0x00, 0x73, 0x04, 0x4c, 0x69, 0x73, 0x74];
/// `{"a", 1, 2.5}`
#[rustfmt::skip]
pub const LIST_MIXED: &[u8] = &[0x38, 0x3a, 0x66, 0x03, 0x73, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x01, 0x61, 0x43, 0x01, 0x72, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x40];
/// `MyPkg`myFunc[1, 2, 3]`
#[rustfmt::skip]
pub const FUNCTION_MYPKG: &[u8] = &[0x38, 0x3a, 0x66, 0x03, 0x73, 0x0c, 0x4d, 0x79, 0x50, 0x6b, 0x67, 0x60, 0x6d, 0x79, 0x46, 0x75, 0x6e, 0x63, 0x43, 0x01, 0x43, 0x02, 0x43, 0x03];
/// `<|"a" -> 1, "b" -> 2|>`
#[rustfmt::skip]
pub const ASSOCIATION_PLAIN: &[u8] = &[0x38, 0x3a, 0x41, 0x02, 0x2d, 0x53, 0x01, 0x61, 0x43, 0x01, 0x2d, 0x53, 0x01, 0x62, 0x43, 0x02];
/// `<|"a" -> 1, "b" :> 2|>`
#[rustfmt::skip]
pub const ASSOCIATION_DELAYED: &[u8] = &[0x38, 0x3a, 0x41, 0x02, 0x2d, 0x53, 0x01, 0x61, 0x43, 0x01, 0x3a, 0x53, 0x01, 0x62, 0x43, 0x02];
/// `ByteArray[{0, 1, 2, 255, 128}]`
#[rustfmt::skip]
pub const BYTE_ARRAY: &[u8] = &[0x38, 0x3a, 0x42, 0x05, 0x00, 0x01, 0x02, 0xff, 0x80];
/// `NumericArray[{10, 20, 30}, "Integer32"]`
#[rustfmt::skip]
pub const NUMERIC_ARRAY_INT32: &[u8] = &[0x38, 0x3a, 0xc2, 0x02, 0x01, 0x03, 0x0a, 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x1e, 0x00, 0x00, 0x00];
/// `Range[100]`, {PerformanceGoal -> "Size"}
#[rustfmt::skip]
pub const COMPRESSED_RANGE_100: &[u8] = &[0x38, 0x43, 0x3a, 0x78, 0x9c, 0x3b, 0xc8, 0xc0, 0x98, 0xc2, 0xc8, 0xc4, 0xcc, 0xc2, 0xca, 0xc6, 0xce, 0xc1, 0xc9, 0xc5, 0xcd, 0xc3, 0xcb, 0xc7, 0x2f, 0x20, 0x28, 0x24, 0x2c, 0x22, 0x2a, 0x26, 0x2e, 0x21, 0x29, 0x25, 0x2d, 0x23, 0x2b, 0x27, 0xaf, 0xa0, 0xa8, 0xa4, 0xac, 0xa2, 0xaa, 0xa6, 0xae, 0xa1, 0xa9, 0xa5, 0xad, 0xa3, 0xab, 0xa7, 0x6f, 0x60, 0x68, 0x64, 0x6c, 0x62, 0x6a, 0x66, 0x6e, 0x61, 0x69, 0x65, 0x6d, 0x63, 0x6b, 0x67, 0xef, 0xe0, 0xe8, 0xe4, 0xec, 0xe2, 0xea, 0xe6, 0xee, 0xe1, 0xe9, 0xe5, 0xed, 0xe3, 0xeb, 0xe7, 0x1f, 0x10, 0x18, 0x14, 0x1c, 0x12, 0x1a, 0x16, 0x1e, 0x11, 0x19, 0x15, 0x1d, 0x13, 0x1b, 0x17, 0x9f, 0x90, 0x98, 0x94, 0x9c, 0x02, 0x00, 0x15, 0x8b, 0x14, 0xe1];