pub struct Float64Zone { /* private fields */ }Expand description
A time representation using f64 clock zones.
Trait Implementations§
Source§impl Clone for Float64Zone
impl Clone for Float64Zone
Source§fn clone(&self) -> Float64Zone
fn clone(&self) -> Float64Zone
Returns a duplicate 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 Float64Zone
impl Debug for Float64Zone
Source§impl<'de> Deserialize<'de> for Float64Zone
impl<'de> Deserialize<'de> for Float64Zone
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 PartialEq for Float64Zone
impl PartialEq for Float64Zone
Source§impl Serialize for Float64Zone
impl Serialize for Float64Zone
Source§impl TimeType for Float64Zone
impl TimeType for Float64Zone
Source§fn future(&self, valuations: Self::Valuations) -> Self::Valuations
fn future(&self, valuations: Self::Valuations) -> Self::Valuations
Extrapolates the future of the given valuations.
Source§type Valuations = DBM<ConstantBound<NotNan<f64>>>
type Valuations = DBM<ConstantBound<NotNan<f64>>>
Type used to represent potentially infinite sets of clock valuations.
Source§type External = <Float64Zone as TimeType>::Valuations
type External = <Float64Zone as TimeType>::Valuations
Type used to represent partially infinite sets of clock valuations externally.
Source§type CompiledDifference = (usize, usize)
type CompiledDifference = (usize, usize)
Type used to represent the difference between two clocks.
Source§type CompiledClocks = Vec<usize>
type CompiledClocks = Vec<usize>
Type used to represent a compiled set of clocks.
Source§fn new(network: &Network) -> Result<Self, String>
fn new(network: &Network) -> Result<Self, String>
Crates a new instance of TimeType for the given network.
Source§fn compile_difference(
&self,
left: &Clock,
right: &Clock,
) -> Self::CompiledDifference
fn compile_difference( &self, left: &Clock, right: &Clock, ) -> Self::CompiledDifference
Takes two clocks and returns a compiled difference between
left and right.Source§fn compile_clocks(&self, clocks: &HashSet<Clock>) -> Self::CompiledClocks
fn compile_clocks(&self, clocks: &HashSet<Clock>) -> Self::CompiledClocks
Takes a set of clocks and returns a compiled set of clocks.
Source§fn is_empty(&self, valuations: &Self::Valuations) -> bool
fn is_empty(&self, valuations: &Self::Valuations) -> bool
Checks the provided set of valuations is empty.
Source§fn create_valuations(
&self,
constraints: Vec<Constraint<Self>>,
) -> Result<Self::Valuations, String>
fn create_valuations( &self, constraints: Vec<Constraint<Self>>, ) -> Result<Self::Valuations, String>
Creates a set of valuations based on the given constraints.
Source§fn constrain(
&self,
valuations: Self::Valuations,
difference: &Self::CompiledDifference,
is_strict: bool,
bound: Value,
) -> Self::Valuations
fn constrain( &self, valuations: Self::Valuations, difference: &Self::CompiledDifference, is_strict: bool, bound: Value, ) -> Self::Valuations
Constrain a set of valuations with the given constraint.
Source§fn reset(
&self,
valuations: Self::Valuations,
clocks: &Self::CompiledClocks,
) -> Self::Valuations
fn reset( &self, valuations: Self::Valuations, clocks: &Self::CompiledClocks, ) -> Self::Valuations
Resets the clocks of the given set to 0.
fn externalize(&self, valuations: Self::Valuations) -> Self::External
impl Eq for Float64Zone
impl StructuralPartialEq for Float64Zone
Auto Trait Implementations§
impl Freeze for Float64Zone
impl RefUnwindSafe for Float64Zone
impl Send for Float64Zone
impl Sync for Float64Zone
impl Unpin for Float64Zone
impl UnwindSafe for Float64Zone
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
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more