pub struct FrontierSupport { /* private fields */ }Expand description
Frontier support: the set of contexts where the discord assignment is non-empty.
Per Theorem 4, this set is upward closed under context refinement when every detector in the underlying registry is monotone.
Implementations§
Source§impl FrontierSupport
impl FrontierSupport
Sourcepub fn is_upward_closed<R: ContextRefinement>(
&self,
refinement: &R,
universe: &[ContextId],
) -> bool
pub fn is_upward_closed<R: ContextRefinement>( &self, refinement: &R, universe: &[ContextId], ) -> bool
Whether this support is upward closed under the given refinement relation.
Returns true iff for every c_prime in the support and
every c in universe with c_prime -> c, c is also in
the support.
This is the empirical Theorem 4 check: given a refinement relation and the set of contexts the assignment was built over, verify that the support set has the upward-closed property the theorem predicts.
Trait Implementations§
Source§impl Clone for FrontierSupport
impl Clone for FrontierSupport
Source§fn clone(&self) -> FrontierSupport
fn clone(&self) -> FrontierSupport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FrontierSupport
impl Debug for FrontierSupport
Source§impl Default for FrontierSupport
impl Default for FrontierSupport
Source§fn default() -> FrontierSupport
fn default() -> FrontierSupport
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FrontierSupport
impl<'de> Deserialize<'de> for FrontierSupport
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 FrontierSupport
impl PartialEq for FrontierSupport
Source§fn eq(&self, other: &FrontierSupport) -> bool
fn eq(&self, other: &FrontierSupport) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for FrontierSupport
impl Serialize for FrontierSupport
impl Eq for FrontierSupport
impl StructuralPartialEq for FrontierSupport
Auto Trait Implementations§
impl Freeze for FrontierSupport
impl RefUnwindSafe for FrontierSupport
impl Send for FrontierSupport
impl Sync for FrontierSupport
impl Unpin for FrontierSupport
impl UnsafeUnpin for FrontierSupport
impl UnwindSafe for FrontierSupport
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§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.