Struct spaces::continuous::Interval
source · pub struct Interval { /* private fields */ }
Expand description
Type representing an interval on the real line.
Implementations§
Trait Implementations§
source§impl BoundedSpace for Interval
impl BoundedSpace for Interval
§type BoundValue = <Interval as Space>::Value
type BoundValue = <Interval as Space>::Value
The upper/lower bound type; not necessarily equal to
Space::Value
.source§fn contains(&self, val: Self::BoundValue) -> bool
fn contains(&self, val: Self::BoundValue) -> bool
Returns true iff
val
lies within the dimension’s bounds (closed).source§impl<'de> Deserialize<'de> for Interval
impl<'de> Deserialize<'de> for Interval
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