arcis 0.10.4

A standard library of types and functions for writing MPC circuits with the Arcis framework.
Documentation
1
2
3
4
5
6
use crate::ArcisType;

/// Creates a `Box<[T]>` from a `&[T]` by cloning all items.
pub fn box_from_slice<T: ArcisType + Clone>(slice: &[T]) -> Box<[T]> {
    Box::from(slice)
}