pub struct PreparedQuestions { /* private fields */ }Expand description
A validated question set, serialized once.
Cloning it copies a reference count, not the bytes, and it can be shared between threads and reused by any number of calls.
Implementations§
Source§impl PreparedQuestions
impl PreparedQuestions
Sourcepub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
Always false: an empty set is rejected by Questions::prepare.
Sourcepub fn names(
&self,
) -> impl ExactSizeIterator<Item = &str> + DoubleEndedIterator + '_
pub fn names( &self, ) -> impl ExactSizeIterator<Item = &str> + DoubleEndedIterator + '_
The question names, in the order they are sent.
Trait Implementations§
Source§impl Clone for PreparedQuestions
impl Clone for PreparedQuestions
Source§impl Debug for PreparedQuestions
impl Debug for PreparedQuestions
impl Eq for PreparedQuestions
Source§impl PartialEq for PreparedQuestions
Two sets are equal when their bytes are, however each was made; the
sizing hint is not part of the set.
impl PartialEq for PreparedQuestions
Two sets are equal when their bytes are, however each was made; the sizing hint is not part of the set.
Auto Trait Implementations§
impl !Freeze for PreparedQuestions
impl RefUnwindSafe for PreparedQuestions
impl Send for PreparedQuestions
impl Sync for PreparedQuestions
impl Unpin for PreparedQuestions
impl UnsafeUnpin for PreparedQuestions
impl UnwindSafe for PreparedQuestions
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.