pub struct Term(/* private fields */);Expand description
A full ciphertext, serialised: left and right halves, with the wire
header. What a scheme stores. Compared with the scheme’s
compare_raw_slices, or against a Query with
compare_left_to_full; never byte by byte, since a full ciphertext
carries a random nonce and one value has many. So no PartialEq:
== on two terms of one value would be false.
Implementations§
Source§impl Term
impl Term
Sourcepub fn into_bytes(self) -> Vec<u8> ⓘ
pub fn into_bytes(self) -> Vec<u8> ⓘ
The serialised bytes, owned.
Sourcepub fn from_bytes(bytes: Vec<u8>) -> Self
pub fn from_bytes(bytes: Vec<u8>) -> Self
Bytes read back from storage, as this type. Nothing is
checked here: the comparators parse the bytes and return
None for ones that are not a ciphertext of their scheme.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Term
impl Freeze for Term
impl Move for Term
impl RefUnwindSafe for Term
impl Send for Term
impl Sync for Term
impl Unpin for Term
impl UnsafeUnpin for Term
impl UnwindSafe for Term
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