Skip to main content

logicaffeine_data/
lib.rs

1#![cfg_attr(docsrs, feature(doc_cfg))]
2#![doc = include_str!("../README.md")]
3
4#[cfg(any(feature = "c-abi", test))]
5#[cfg_attr(docsrs, doc(cfg(feature = "c-abi")))]
6pub mod abi;
7pub mod backpressure;
8pub mod crdt;
9pub mod exact;
10pub mod failure;
11pub mod fmt;
12pub mod indexing;
13pub mod ops;
14pub mod opt;
15pub mod temporal;
16pub mod types;
17pub mod wire;
18
19// Re-export commonly used types
20pub use crdt::{
21    generate_replica_id, AddWins, DeltaBuffer, DeltaCrdt, Dot, DotContext, GCounter, LWWRegister,
22    MVRegister, Merge, ORMap, ORSet, PNCounter, RemoveWins, ReplicaId, SetBias, VClock, RGA, YATA,
23};
24pub use failure::{contract_reason, ContractReason};
25pub use indexing::{
26    logos_offset, logos_run_before, logos_run_through, logos_slice_range, logos_text_run_before,
27    logos_text_run_through, resolve_logos_index, LogosGetChar, LogosIndex, LogosIndexMut,
28    LogosItems,
29};
30pub use ops::{
31    logos_add_exact, logos_add_i64, logos_approx_eq, logos_band_exact, logos_cmp_i64_f64,
32    logos_cold_path, logos_div_exact, logos_div_i128, logos_div_i64, logos_floordiv_exact,
33    logos_i64_eq_f64, logos_i64_key_of_f64, logos_mul_exact, logos_mul_i64, logos_narrow_i128,
34    logos_pow_exact, logos_rem_exact, logos_rem_i128, logos_rem_i64, logos_sub_exact,
35    logos_sub_i64, logos_truthy, logos_word_operand, LogosStrPushInt, Truthy,
36};
37/// The language's `min` and `max` of two reals ([`logicaffeine_base::numeric::float_min`]), which a
38/// compiled program calls where the interpreter's builtins call them.
39pub use logicaffeine_base::numeric::{float_max as logos_max_f64, float_min as logos_min_f64};
40pub use rustc_hash::{FxHashMap, FxHashSet};
41pub use types::{
42    decimal_of, set_rate, set_rates, text_bytes, text_from_bytes, to_currency, Bool, Boxable, Byte,
43    Char, DecimalArg, FillClone, FxIndexMap, FxIndexSet, Int, IntoRate, LogosBits, LogosBoxed,
44    LogosComplex, LogosComplexF, LogosContains, LogosDecimal, LogosDenseI64Map,
45    LogosDenseI64MapNoPresence, LogosDenseI64Set, LogosDivU64, LogosI32Map, LogosI32Set,
46    LogosI64Map, LogosI64Set, LogosInt, LogosMap, LogosModular, LogosMoney, LogosQuantity,
47    LogosRational, LogosSeq, LogosTuple, LogosUuid, Map, Nat, Real, Seq, Set, Text, ToRationals, Tuple,
48    Unit, Value, VecCowNoop,
49};
50pub use exact::LogosValue;
51pub use opt::LogosOpt;