Struct trustfall_core::interpreter::Range
source · #[non_exhaustive]pub struct Range<T> { /* private fields */ }
Expand description
A range of values. Both its endpoints may be included or excluded in the range, or unbounded.
Implementations§
source§impl<T: Debug + Clone + PartialEq + Eq + PartialOrd + NullableValue> Range<T>
impl<T: Debug + Clone + PartialEq + Eq + PartialOrd + NullableValue> Range<T>
sourcepub fn start_bound(&self) -> Bound<&T>
pub fn start_bound(&self) -> Bound<&T>
The range’s start point. May include or exclude the value at the specified point.
sourcepub fn end_bound(&self) -> Bound<&T>
pub fn end_bound(&self) -> Bound<&T>
The range’s end point. May include or exclude the value at the specified point.
sourcepub fn null_included(&self) -> bool
pub fn null_included(&self) -> bool
Whether the range includes the null
value or not.
sourcepub fn degenerate(&self) -> bool
pub fn degenerate(&self) -> bool
A range is considered degenerate if it cannot contain any non-null
values.
Degenerate ranges may still contain the null
value.
Trait Implementations§
source§impl<'de, T> Deserialize<'de> for Range<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for Range<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 Range<T>
impl<T: PartialEq> PartialEq for Range<T>
impl<T: Copy> Copy for Range<T>
impl<T: Eq> Eq for Range<T>
impl<T> StructuralEq for Range<T>
impl<T> StructuralPartialEq for Range<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for Range<T>where T: RefUnwindSafe,
impl<T> Send for Range<T>where T: Send,
impl<T> Sync for Range<T>where T: Sync,
impl<T> Unpin for Range<T>where T: Unpin,
impl<T> UnwindSafe for Range<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.