arnaucube
arnaucube/phantom-zonePublic Self-hosted repository
phantom-zone/src/shortint/types.rs
src/shortint/types.rsRaw
 1#[derive(Clone)]
 2pub(super) struct FheUint8<C> {
 3    pub(super) data: Vec<C>,
 4}
 5
 6impl<C> FheUint8<C> {
 7    pub(super) fn data(&self) -> &[C] {
 8        &self.data
 9    }
10
11    pub(super) fn data_mut(&mut self) -> &mut [C] {
12        &mut self.data
13    }
14}