#[non_exhaustive]pub enum CandidateValue<T> {
Impossible,
Single(T),
Multiple(Vec<T>),
Range(Range<T>),
All,
}
Expand description
Candidate values for the value of a vertex property.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Impossible
This property has no valid value that satisfies the query.
Single(T)
There’s only one value that could satisfy the query.
Multiple(Vec<T>)
There are multiple discrete values that could satisfy the query.
Range(Range<T>)
A continuous range of values for this property could satisfy this query.
The endpoints of the range may be inclusive or exclusive, and
the range may include or exclude the null
value.
All
We’ve detected no constraints on the value of this property.
Trait Implementations§
source§impl<T: Clone> Clone for CandidateValue<T>
impl<T: Clone> Clone for CandidateValue<T>
source§fn clone(&self) -> CandidateValue<T>
fn clone(&self) -> CandidateValue<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T: Debug> Debug for CandidateValue<T>
impl<T: Debug> Debug for CandidateValue<T>
source§impl<'de, T> Deserialize<'de> for CandidateValue<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for CandidateValue<T>where T: Deserialize<'de>,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<T: PartialEq> PartialEq for CandidateValue<T>
impl<T: PartialEq> PartialEq for CandidateValue<T>
source§fn eq(&self, other: &CandidateValue<T>) -> bool
fn eq(&self, other: &CandidateValue<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<T> Serialize for CandidateValue<T>where
T: Serialize,
impl<T> Serialize for CandidateValue<T>where T: Serialize,
impl<T: Eq> Eq for CandidateValue<T>
impl<T> StructuralEq for CandidateValue<T>
impl<T> StructuralPartialEq for CandidateValue<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for CandidateValue<T>where T: RefUnwindSafe,
impl<T> Send for CandidateValue<T>where T: Send,
impl<T> Sync for CandidateValue<T>where T: Sync,
impl<T> Unpin for CandidateValue<T>where T: Unpin,
impl<T> UnwindSafe for CandidateValue<T>where T: UnwindSafe,
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.