[−][src]Struct fancy_garbling::BinaryBundle
Bundle which is explicitly binary representation.
Methods
impl<W: Clone + HasModulus> BinaryBundle<W>
[src]
pub fn new(ws: Vec<W>) -> BinaryBundle<W>
[src]
Create a new binary bundle from a vector of wires.
pub fn extract(self) -> Bundle<W>
[src]
Extract the underlying bundle from this binary bundle.
Methods from Deref<Target = Bundle<W>>
pub fn moduli(&self) -> Vec<u16>
[src]
Return the moduli of all the wires in the bundle.
pub fn wires(&self) -> &[W]
[src]
Extract the wires from this bundle.
pub fn size(&self) -> usize
[src]
Get the number of wires in this bundle.
pub fn is_binary(&self) -> bool
[src]
Whether this bundle only contains residues in mod 2.
pub fn with_moduli(&self, moduli: &[u16]) -> Bundle<W>
[src]
Returns a new bundle only containing wires with matching moduli.
pub fn iter(&self) -> Iter<W>
[src]
Access the underlying iterator
Trait Implementations
impl<W: Clone + HasModulus> From<Bundle<W>> for BinaryBundle<W>
[src]
fn from(b: Bundle<W>) -> BinaryBundle<W>
[src]
impl<W: Clone + HasModulus> Clone for BinaryBundle<W>
[src]
fn clone(&self) -> BinaryBundle<W>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<W: Clone + HasModulus> Deref for BinaryBundle<W>
[src]
Auto Trait Implementations
impl<W> Send for BinaryBundle<W> where
W: Send,
W: Send,
impl<W> Sync for BinaryBundle<W> where
W: Sync,
W: Sync,
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T, U> IntoBits<U> for T where
U: FromBits<T>,
U: FromBits<T>,
fn into_bits(self) -> U
impl<T> FromCast<T> for T
fn from_cast(t: T) -> T
impl<T, U> Cast<U> for T where
U: FromCast<T>,
U: FromCast<T>,
fn cast(self) -> U
impl<T> FromBits<T> for T
fn from_bits(t: T) -> T
impl<T> Same<T> for T
type Output = T
Should always be Self