pub struct PirBatch {
pub node_type: Vec<u8>,
pub leaf_id: Vec<u32>,
pub decision_var: Vec<u32>,
pub decision_child_false: Vec<u32>,
pub decision_child_true: Vec<u32>,
pub child_offsets: Vec<u32>,
pub children: Vec<u32>,
}Expand description
Host-side PIR batch (for tests and host-driven workflows).
Fields§
§node_type: Vec<u8>§leaf_id: Vec<u32>§decision_var: Vec<u32>§decision_child_false: Vec<u32>§decision_child_true: Vec<u32>§child_offsets: Vec<u32>§children: Vec<u32>Implementations§
Source§impl PirBatch
impl PirBatch
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Sourcepub fn and_or_batch(children: Vec<Vec<u32>>) -> Self
pub fn and_or_batch(children: Vec<Vec<u32>>) -> Self
Build a batch of AND nodes with the given child lists.
This helper is primarily used by tests.
pub fn to_device( &self, provider: &Arc<CudaKernelProvider>, ) -> Result<GpuPirBatch>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PirBatch
impl RefUnwindSafe for PirBatch
impl Send for PirBatch
impl Sync for PirBatch
impl Unpin for PirBatch
impl UnsafeUnpin for PirBatch
impl UnwindSafe for PirBatch
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more