Plaintext

Enum Plaintext 

Source
pub enum Plaintext<N: Network> {
    Literal(Literal<N>, OnceLock<Vec<bool>>),
    Struct(IndexMap<Identifier<N>, Plaintext<N>>, OnceLock<Vec<bool>>),
    Array(Vec<Plaintext<N>>, OnceLock<Vec<bool>>),
}

Variants§

§

Literal(Literal<N>, OnceLock<Vec<bool>>)

A literal.

§

Struct(IndexMap<Identifier<N>, Plaintext<N>>, OnceLock<Vec<bool>>)

A struct.

§

Array(Vec<Plaintext<N>>, OnceLock<Vec<bool>>)

An array.

Implementations§

Source§

impl<N: Network> Plaintext<N>

Source

pub fn encrypt( &self, address: &Address<N>, randomizer: Scalar<N>, ) -> Result<Ciphertext<N>>

Encrypts self to the given address under the given randomizer.

Source

pub fn encrypt_symmetric( &self, plaintext_view_key: Field<N>, ) -> Result<Ciphertext<N>>

Encrypts self under the given plaintext view key.

Source§

impl<N: Network> Plaintext<N>

Source

pub fn find<A: Into<Access<N>> + Copy + Debug>( &self, path: &[A], ) -> Result<Plaintext<N>>

Returns the plaintext member from the given path.

Source§

impl<N: Network> Plaintext<N>

Source

pub fn from_bit_array(bits: Vec<bool>, length: u32) -> Result<Self>

Returns a new Plaintext::Array from Vec<bool>, checking that the length is correct.

Source

pub fn as_bit_array(&self) -> Result<Vec<bool>>

Returns the Plaintext as a Vec<bool>, if it is a bit array.

Trait Implementations§

Source§

impl<N: Clone + Network> Clone for Plaintext<N>

Source§

fn clone(&self) -> Plaintext<N>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<N: Network> Debug for Plaintext<N>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Prints the plaintext as a string.

Source§

impl<'de, N: Network> Deserialize<'de> for Plaintext<N>

Source§

fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>

Deserializes the plaintext from a string or bytes.

Source§

impl<N: Network> Display for Plaintext<N>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Prints the plaintext as a string.

Source§

impl<N: Network> Equal for Plaintext<N>

Source§

fn is_equal(&self, other: &Self) -> Self::Output

Returns true if self and other are equal.

Source§

fn is_not_equal(&self, other: &Self) -> Self::Output

Returns true if self and other are not equal.

Source§

type Output = Boolean<N>

Source§

impl<N: Network> From<&Literal<N>> for Plaintext<N>

Source§

fn from(literal: &Literal<N>) -> Self

Returns a new Plaintext from a &Literal.

Source§

impl<N: Network> From<&Plaintext<N>> for Value<N>

Source§

fn from(plaintext: &Plaintext<N>) -> Self

Initializes the value from a plaintext.

Source§

impl<N: Network> From<[Integer<N, u8>; 1]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 1]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 10]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 10]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 100]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 100]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 101]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 101]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 102]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 102]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 103]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 103]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 104]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 104]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 105]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 105]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 106]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 106]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 107]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 107]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 108]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 108]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 109]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 109]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 11]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 11]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 110]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 110]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 111]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 111]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 112]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 112]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 113]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 113]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 114]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 114]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 115]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 115]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 116]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 116]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 117]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 117]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 118]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 118]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 119]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 119]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 12]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 12]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 120]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 120]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 121]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 121]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 122]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 122]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 123]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 123]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 124]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 124]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 125]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 125]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 126]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 126]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 127]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 127]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 128]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 128]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 129]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 129]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 13]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 13]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 130]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 130]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 131]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 131]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 132]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 132]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 133]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 133]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 134]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 134]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 135]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 135]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 136]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 136]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 137]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 137]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 138]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 138]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 139]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 139]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 14]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 14]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 140]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 140]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 141]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 141]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 142]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 142]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 143]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 143]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 144]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 144]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 145]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 145]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 146]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 146]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 147]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 147]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 148]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 148]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 149]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 149]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 15]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 15]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 150]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 150]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 151]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 151]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 152]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 152]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 153]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 153]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 154]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 154]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 155]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 155]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 156]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 156]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 157]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 157]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 158]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 158]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 159]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 159]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 16]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 16]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 160]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 160]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 161]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 161]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 162]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 162]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 163]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 163]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 164]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 164]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 165]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 165]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 166]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 166]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 167]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 167]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 168]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 168]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 169]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 169]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 17]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 17]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 170]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 170]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 171]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 171]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 172]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 172]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 173]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 173]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 174]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 174]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 175]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 175]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 176]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 176]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 177]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 177]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 178]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 178]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 179]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 179]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 18]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 18]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 180]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 180]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 181]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 181]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 182]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 182]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 183]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 183]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 184]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 184]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 185]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 185]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 186]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 186]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 187]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 187]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 188]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 188]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 189]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 189]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 19]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 19]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 190]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 190]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 191]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 191]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 192]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 192]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 193]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 193]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 194]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 194]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 195]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 195]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 196]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 196]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 197]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 197]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 198]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 198]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 199]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 199]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 2]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 2]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 20]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 20]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 200]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 200]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 201]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 201]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 202]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 202]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 203]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 203]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 204]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 204]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 205]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 205]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 206]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 206]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 207]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 207]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 208]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 208]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 209]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 209]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 21]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 21]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 210]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 210]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 211]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 211]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 212]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 212]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 213]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 213]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 214]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 214]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 215]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 215]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 216]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 216]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 217]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 217]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 218]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 218]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 219]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 219]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 22]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 22]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 220]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 220]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 221]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 221]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 222]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 222]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 223]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 223]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 224]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 224]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 225]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 225]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 226]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 226]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 227]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 227]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 228]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 228]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 229]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 229]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 23]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 23]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 230]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 230]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 231]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 231]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 232]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 232]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 233]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 233]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 234]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 234]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 235]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 235]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 236]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 236]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 237]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 237]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 238]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 238]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 239]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 239]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 24]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 24]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 240]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 240]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 241]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 241]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 242]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 242]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 243]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 243]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 244]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 244]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 245]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 245]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 246]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 246]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 247]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 247]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 248]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 248]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 249]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 249]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 25]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 25]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 250]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 250]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 251]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 251]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 252]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 252]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 253]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 253]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 254]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 254]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 255]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 255]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 256]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 256]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 26]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 26]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 27]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 27]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 28]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 28]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 29]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 29]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 3]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 3]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 30]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 30]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 31]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 31]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 32]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 32]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 33]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 33]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 34]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 34]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 35]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 35]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 36]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 36]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 37]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 37]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 38]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 38]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 39]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 39]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 4]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 4]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 40]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 40]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 41]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 41]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 42]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 42]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 43]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 43]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 44]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 44]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 45]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 45]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 46]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 46]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 47]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 47]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 48]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 48]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 49]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 49]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 5]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 5]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 50]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 50]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 51]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 51]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 52]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 52]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 53]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 53]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 54]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 54]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 55]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 55]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 56]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 56]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 57]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 57]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 58]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 58]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 59]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 59]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 6]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 6]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 60]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 60]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 61]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 61]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 62]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 62]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 63]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 63]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 64]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 64]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 65]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 65]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 66]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 66]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 67]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 67]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 68]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 68]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 69]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 69]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 7]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 7]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 70]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 70]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 71]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 71]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 72]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 72]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 73]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 73]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 74]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 74]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 75]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 75]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 76]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 76]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 77]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 77]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 78]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 78]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 79]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 79]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 8]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 8]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 80]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 80]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 81]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 81]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 82]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 82]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 83]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 83]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 84]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 84]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 85]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 85]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 86]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 86]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 87]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 87]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 88]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 88]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 89]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 89]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 9]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 9]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 90]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 90]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 91]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 91]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 92]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 92]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 93]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 93]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 94]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 94]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 95]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 95]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 96]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 96]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 97]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 97]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 98]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 98]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<[Integer<N, u8>; 99]> for Plaintext<N>

Source§

fn from(value: [U8<N>; 99]) -> Self

Converts to this type from the input type.
Source§

impl<N: Network> From<Literal<N>> for Plaintext<N>

Source§

fn from(literal: Literal<N>) -> Self

Returns a new Plaintext from a Literal.

Source§

impl<N: Network> From<Plaintext<N>> for Value<N>

Source§

fn from(plaintext: Plaintext<N>) -> Self

Initializes the value from a plaintext.

Source§

impl<N: Network> FromBits for Plaintext<N>

Source§

fn from_bits_le(bits_le: &[bool]) -> Result<Self>

Initializes a new plaintext from a list of little-endian bits without trailing zeros.

Source§

fn from_bits_be(bits_be: &[bool]) -> Result<Self>

Initializes a new plaintext from a list of big-endian bits without trailing zeros.

Source§

impl<N: Network> FromBytes for Plaintext<N>

Source§

fn read_le<R: Read>(reader: R) -> IoResult<Self>

Reads the plaintext from a buffer.

Source§

fn from_bytes_le(bytes: &[u8]) -> Result<Self, Error>
where Self: Sized,

Returns Self from a byte array in little-endian order.
Source§

fn from_bytes_le_unchecked(bytes: &[u8]) -> Result<Self, Error>
where Self: Sized,

Same behavior as Self::from_bytes_le but avoids costly checks. This shall only be called when deserializing from a trusted source, such as local storage. Read more
Source§

fn read_le_unchecked<R>(reader: R) -> Result<Self, Error>
where R: Read, Self: Sized,

Same behavior as Self::read_le but avoids costly checks. This shall only be called when deserializing from a trusted source, such as local storage. Read more
Source§

fn read_le_with_unchecked<R>(reader: R, unchecked: bool) -> Result<Self, Error>
where R: Read, Self: Sized,

Helper function that deserializes either unchecked or checked based on the given boolean flag.
Source§

impl<N: Network> FromFields for Plaintext<N>

Source§

fn from_fields(fields: &[Self::Field]) -> Result<Self>

Initializes a plaintext from a list of base field elements.

Source§

type Field = Field<N>

Source§

impl<N: Network> FromStr for Plaintext<N>

Source§

fn from_str(string: &str) -> Result<Self>

Returns a plaintext from a string literal.

Source§

type Err = Error

The associated error which can be returned from parsing.
Source§

impl<N: Network> Parser for Plaintext<N>

Source§

fn parse(string: &str) -> ParserResult<'_, Self>

Parses a string into a plaintext value.

Source§

impl<N: Network> PartialEq for Plaintext<N>

Source§

fn eq(&self, other: &Self) -> bool

Returns true if self and other are equal.

1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<N: Network> Serialize for Plaintext<N>

Source§

fn serialize<S: Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error>

Serializes the plaintext into a string or as bytes.

Source§

impl<N: Network> ToBits for Plaintext<N>

Source§

fn write_bits_le(&self, vec: &mut Vec<bool>)

Returns this plaintext as a list of little-endian bits.

Source§

fn write_bits_be(&self, vec: &mut Vec<bool>)

Returns this plaintext as a list of big-endian bits.

Source§

fn to_bits_le(&self) -> Vec<bool>

Returns self as a boolean array in little-endian order.
Source§

fn to_bits_be(&self) -> Vec<bool>

Returns self as a boolean array in big-endian order.
Source§

fn num_bits() -> Option<usize>

An optional indication of how many bits an object can be represented with.
Source§

impl<N: Network> ToBitsRaw for Plaintext<N>

Source§

fn write_bits_raw_le(&self, vec: &mut Vec<bool>)

Returns this plaintext as a list of little-endian bits without variant or identifier bits.

Source§

fn write_bits_raw_be(&self, vec: &mut Vec<bool>)

Returns this plaintext as a list of big-endian bits without variant or identifier bits.

Source§

fn to_bits_raw_le(&self) -> Vec<bool>

Returns self as a boolean array in little-endian order.
Source§

fn to_bits_raw_be(&self) -> Vec<bool>

Returns self as a boolean array in big-endian order.
Source§

impl<N: Network> ToBytes for Plaintext<N>

Source§

fn write_le<W: Write>(&self, writer: W) -> IoResult<()>

Writes the plaintext to a buffer.

Source§

fn to_bytes_le(&self) -> Result<Vec<u8>, Error>
where Self: Sized,

Returns self as a byte array in little-endian order.
Source§

impl<N: Network> ToFields for Plaintext<N>

Source§

fn to_fields(&self) -> Result<Vec<Self::Field>>

Returns this plaintext as a list of field elements.

Source§

type Field = Field<N>

Source§

impl<N: Network> ToFieldsRaw for Plaintext<N>

Source§

fn to_fields_raw(&self) -> Result<Vec<Self::Field>>

Returns this plaintext as a list of field elements using the raw bits.

Source§

impl<N: Network> TryFrom<&[Field<N>]> for Plaintext<N>

Source§

fn try_from(fields: &[Field<N>]) -> Result<Self, Self::Error>

Initializes a plaintext from a list of base field elements.

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

impl<N: Network> TryFrom<Vec<Field<N>>> for Plaintext<N>

Source§

fn try_from(fields: Vec<Field<N>>) -> Result<Self, Self::Error>

Initializes a plaintext from a list of base field elements.

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

impl<N: Network> Visibility for Plaintext<N>

Source§

fn size_in_fields(&self) -> Result<u16>

Returns the number of field elements to encode self.

Source§

type Boolean = Boolean<N>

Source§

impl<N: Network> Eq for Plaintext<N>

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<'de, T> DeserializeExt<'de> for T

Source§

fn take_from_value<D>( value: &mut Value, field: &str, ) -> Result<T, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSmolStr for T
where T: Display + ?Sized,

Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,