arcis 0.14.1

A standard library of types and functions for writing MPC circuits with the Arcis framework.
Documentation
//! Documentation of the `std` subset that the arcis interpreter accepts
//! inside `#[encrypted]` code.
//!
//! # How to read this module
//!
//! Each submodule documents the methods supported on a particular kind of
//! type (`slice`, `iter`, `integer`, `float`, `boolean`, `option`, `cell`,
//! `boxed`, `mem`). For type categories where extension traits work cleanly, the
//! submodule defines a trait whose only purpose is to give rustdoc a page to
//! attach the documentation to; for [`iter`] (where a parallel trait would
//! conflict with [`Iterator`]) the supported methods are listed in the
//! module-level documentation instead.
//!
//! The method bodies are documentation-only stubs that panic if called outside
//! the interpreter. Inside `#[encrypted]` code the interpreter intercepts the
//! call before the body runs.
//!
//! The traits are never imported by user code. Names exist purely so that
//! rustdoc renders pages like [`slice::SupportedSlice`] showing which methods
//! arcis recognizes, on which receivers, with what complexity and caveats.
//!
//! Items defined by arcis itself (`.reveal()`, `.to_arcis()`,
//! `BaseField25519::*`, …) are documented on the types they belong to, not
//! here.

#![allow(unused)]

// Order matters: every "stub" submodule (defining a doc-only type like
// `Option`, `Box`, `u8`, …) is declared BEFORE any "mirror" submodule (`clone`,
// `cmp`, …). That way rustdoc encounters the derive-generated std-trait impl
// first (no id suffix) and the doc-only `arcis::std::*::Trait` mirror impl
// second (gets `-1`), keeping the suffix discriminator consistent across
// every type so the sidebar dedup CSS rule works regardless of which type.

// Stubs first (declare types with `#[derive(...)]`). `ops` is here despite also
// defining mirror traits (Add, Sub, Index, …) because it declares the range
// stubs (`Range`, `RangeInclusive`, …) whose derives need to be processed
// before the arcis mirror impls in `clone`/`cmp`/`fmt`/etc. — otherwise the
// `-1` discriminator inverts and the sidebar CSS hides the wrong impl.
pub mod boolean;
pub mod boxed;
pub mod cell;
pub mod float;
pub mod integer;
pub mod iter;
pub mod mem;
pub mod ops;
pub mod option;
pub mod slice;

// Mirrors second (impl `arcis::std::*::Trait` for the stubs above + arcis types).
pub mod clone;
pub mod cmp;
pub mod default;
pub mod fmt;
pub mod marker;