pub struct Query(/* private fields */);Expand description
A left (query) ciphertext, serialised: the per-block permuted
symbols and tags, with the wire header, and no nonce or right half.
Made from the value searched for, and compared against a stored
Term with the scheme’s compare_left_to_full. Deterministic:
one value under one key and salt gives one query.
Implementations§
Source§impl Query
impl Query
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§
impl Eq for Query
impl StructuralPartialEq for Query
Auto Trait Implementations§
impl Forget for Query
impl Freeze for Query
impl Move for Query
impl RefUnwindSafe for Query
impl Send for Query
impl Sync for Query
impl Unpin for Query
impl UnsafeUnpin for Query
impl UnwindSafe for Query
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