pub struct ScottOpen {
pub domain_size: usize,
pub elements: Vec<usize>,
}Expand description
A Scott-open set on a finite flat domain {bottom=0, 1, …, domain_size-1}.
Fields§
§domain_size: usizeTotal domain size (bottom at index 0).
elements: Vec<usize>Elements in the open set (sorted, all > 0).
Implementations§
Source§impl ScottOpen
impl ScottOpen
Sourcepub fn new(domain_size: usize, elems: impl IntoIterator<Item = usize>) -> Self
pub fn new(domain_size: usize, elems: impl IntoIterator<Item = usize>) -> Self
Create a Scott-open set (bottom is automatically excluded).
Sourcepub fn intersection(&self, other: &Self) -> Self
pub fn intersection(&self, other: &Self) -> Self
Intersection (stays Scott-open).
Sourcepub fn is_scott_open(&self) -> bool
pub fn is_scott_open(&self) -> bool
Verify Scott-openness: bottom must not be in the set.
Sourcepub fn characteristic(&self, x: usize) -> bool
pub fn characteristic(&self, x: usize) -> bool
Characteristic membership function.
Trait Implementations§
impl Eq for ScottOpen
impl StructuralPartialEq for ScottOpen
Auto Trait Implementations§
impl Freeze for ScottOpen
impl RefUnwindSafe for ScottOpen
impl Send for ScottOpen
impl Sync for ScottOpen
impl Unpin for ScottOpen
impl UnsafeUnpin for ScottOpen
impl UnwindSafe for ScottOpen
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