pub struct DomainRange {
pub start: i64,
pub end: i64,
}
Expand description
Defines how to give a range of values as a domain for an atomic fact.
Fields§
§start: i64
The start value of the range, inclusive.
end: i64
The end value of the range, inclusive.
Trait Implementations§
Source§impl Clone for DomainRange
impl Clone for DomainRange
Source§fn clone(&self) -> DomainRange
fn clone(&self) -> DomainRange
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 Debug for DomainRange
impl Debug for DomainRange
Source§impl<'de> Deserialize<'de> for DomainRange
impl<'de> Deserialize<'de> for DomainRange
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 From<DomainRange> for RangeInclusive<i64>
impl From<DomainRange> for RangeInclusive<i64>
Source§fn from(value: DomainRange) -> Self
fn from(value: DomainRange) -> Self
Converts to this type from the input type.
Source§impl From<RangeInclusive<i64>> for DomainRange
impl From<RangeInclusive<i64>> for DomainRange
Source§fn from(value: RangeInclusive<i64>) -> Self
fn from(value: RangeInclusive<i64>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DomainRange
impl RefUnwindSafe for DomainRange
impl Send for DomainRange
impl Sync for DomainRange
impl Unpin for DomainRange
impl UnwindSafe for DomainRange
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