Dbm

Struct Dbm 

Source
pub struct Dbm<B: Bound, L: Layout<B> = LinearLayout<B>> { /* private fields */ }
Expand description

An implementation of Zone as difference bound matrix.

Uses LinearLayout as the default storage layout.

Trait Implementations§

Source§

impl<B: Clone + Bound, L: Clone + Layout<B>> Clone for Dbm<B, L>

Source§

fn clone(&self) -> Dbm<B, L>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<B: Debug + Bound, L: Debug + Layout<B>> Debug for Dbm<B, L>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<B: Hash + Bound, L: Hash + Layout<B>> Hash for Dbm<B, L>

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl<B: PartialEq + Bound, L: PartialEq + Layout<B>> PartialEq for Dbm<B, L>

Source§

fn eq(&self, other: &Dbm<B, L>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<B: Bound, L: Layout<B>> Zone for Dbm<B, L>

Source§

type Bound = B

Source§

fn new_unconstrained(num_variables: usize) -> Self

Constructs a new zone without any constraints besides clocks being positive.
Source§

fn new_zero(num_variables: usize) -> Self

Constructs a new zone where all clocks are set to zero.
Source§

fn with_constraints<U>(num_variables: usize, constraints: U) -> Self
where U: IntoIterator<Item = Constraint<B>>,

Constructs a new zone from the given iterable of constraints.
Source§

fn num_variables(&self) -> usize

Returns the number of clock variables of this zone.
Source§

fn num_clocks(&self) -> usize

Returns the number of clocks of this zone. Read more
Source§

fn get_bound(&self, left: impl AnyClock, right: impl AnyClock) -> &B

Retrieves the difference bound for left - right.
Source§

fn is_empty(&self) -> bool

Checks whether the zone is empty.
Source§

fn add_constraint(&mut self, constraint: Constraint<B>)

Adds a constraint to the zone.
Source§

fn add_constraints<U>(&mut self, constraints: U)
where U: IntoIterator<Item = Constraint<B>>,

Adds all constraints from the given iterable to the zone.
Source§

fn intersect(&mut self, other: &Self)

Intersects two zones.
Source§

fn future(&mut self)

Computes the future of the zone by removing all upper bounds. Read more
Source§

fn past(&mut self)

Computes the past of the zone by removing all lower bounds. Read more
Source§

fn reset(&mut self, clock: Variable, value: B::Constant)

Resets the given clock variable to the specified constant.
Source§

fn is_unbounded(&self, clock: impl AnyClock) -> bool

Checks whether the value of the given clock is unbounded.
Source§

fn get_upper_bound(&self, clock: impl AnyClock) -> Option<B::Constant>

Returns the upper bound for the value of the given clock.
Source§

fn get_lower_bound(&self, clock: impl AnyClock) -> Option<B::Constant>

Returns the lower bound for the value of the given clock.
Source§

fn is_satisfied(&self, constraint: Constraint<B>) -> bool

Checks whether the given constraint is satisfied by the zone.
Source§

fn includes(&self, other: &Self) -> bool

Checks whether the zone includes the other zone.
Source§

fn resize(&self, num_variables: usize) -> Self

Creates a resized copy of the zone by adding or removing clocks. Read more
Source§

impl<B: Eq + Bound, L: Eq + Layout<B>> Eq for Dbm<B, L>

Source§

impl<B: Bound, L: Layout<B>> StructuralPartialEq for Dbm<B, L>

Auto Trait Implementations§

§

impl<B, L> Freeze for Dbm<B, L>
where L: Freeze,

§

impl<B, L> RefUnwindSafe for Dbm<B, L>

§

impl<B, L> Send for Dbm<B, L>
where L: Send, B: Send,

§

impl<B, L> Sync for Dbm<B, L>
where L: Sync, B: Sync,

§

impl<B, L> Unpin for Dbm<B, L>
where L: Unpin, B: Unpin,

§

impl<B, L> UnwindSafe for Dbm<B, L>
where L: UnwindSafe, B: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.