pub fn encrypt_with_nonce<T: Serialize>(
        &self,
        plaintext: &T,
        nonce: &Nonce,
    ) -> Result<Vec<u8>, EncryptionError> {
        self.encrypt_bytes_with_nonce(&serialize(plaintext)?, nonce)
    }
/// Encrypts serialisable `plaintext` using authenticated symmetric encryption, with a nonce.
///
/// See `encrypt`.
Encrypts serialisable `plaintext` using authenticated symmetric encryption, with a nonce.
See `encrypt`.
Encrypts serialisable ` plaintext ` using authenticated symmetric encryption with a nonce . See ` encrypt ` .
pub fn encrypt_with_nonce<T: Serialize>(
        &self,
        plaintext: &T,
        nonce: &Nonce,
    ) -> Result<Vec<u8>, EncryptionError> {
        self.encrypt_bytes_with_nonce(&serialize(plaintext)?, nonce)
    }
pub fn encrypt_with_nonce < T : Serialize > ( & self , plaintext : & T , nonce : & Nonce , ) -> Result < Vec < u8 > , EncryptionError > { self . encrypt_bytes_with_nonce ( & serialize ( plaintext ) ? , nonce ) }
Encrypts serialisable `plaintext` using authenticated symmetric encryption, with a nonce.
Encrypts serialisable ` plaintext ` using authenticated symmetric encryption with a nonce .
&self
plaintext
&T
nonce
&Nonce
&self
plaintext
&T
nonce
&Nonce