pub struct GlobalTime { /* private fields */ }Expand description
A time representation using f64 clock zones.
Trait Implementations§
Source§impl Clone for GlobalTime
impl Clone for GlobalTime
Source§fn clone(&self) -> GlobalTime
fn clone(&self) -> GlobalTime
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 GlobalTime
impl Debug for GlobalTime
Source§impl<'de> Deserialize<'de> for GlobalTime
impl<'de> Deserialize<'de> for GlobalTime
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 GlobalTime
impl PartialEq for GlobalTime
Source§impl Serialize for GlobalTime
impl Serialize for GlobalTime
Source§impl TimeType for GlobalTime
impl TimeType for GlobalTime
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 = GlobalValuations
type Valuations = GlobalValuations
Type used to represent potentially infinite sets of clock valuations.
Source§type External = <GlobalTime as TimeType>::Valuations
type External = <GlobalTime 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 GlobalTime
impl StructuralPartialEq for GlobalTime
Auto Trait Implementations§
impl Freeze for GlobalTime
impl RefUnwindSafe for GlobalTime
impl Send for GlobalTime
impl Sync for GlobalTime
impl Unpin for GlobalTime
impl UnwindSafe for GlobalTime
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