pub struct NoClocks();Expand description
A time representation not supporting any real-valued clocks.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NoClocks
impl<'de> Deserialize<'de> for NoClocks
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 TimeType for NoClocks
impl TimeType for NoClocks
Source§type Valuations = ()
type Valuations = ()
Type used to represent potentially infinite sets of clock valuations.
Source§type External = ()
type External = ()
Type used to represent partially infinite sets of clock valuations externally.
Source§type CompiledDifference = ()
type CompiledDifference = ()
Type used to represent the difference between two clocks.
Source§type CompiledClocks = ()
type CompiledClocks = ()
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.
Source§fn future(&self, _valuations: Self::Valuations) -> Self::Valuations
fn future(&self, _valuations: Self::Valuations) -> Self::Valuations
Extrapolates the future of the given valuations.
fn externalize(&self, valuations: Self::Valuations) -> Self::External
impl Eq for NoClocks
impl StructuralPartialEq for NoClocks
Auto Trait Implementations§
impl Freeze for NoClocks
impl RefUnwindSafe for NoClocks
impl Send for NoClocks
impl Sync for NoClocks
impl Unpin for NoClocks
impl UnwindSafe for NoClocks
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