Enum honestintervals::SignClass
[−]
[src]
pub enum SignClass { Mixed, Zero, Positive(bool), Negative(bool), }
Represents the sign class of an interval.
See http://fab.cba.mit.edu/classes/S62.12/docs/Hickey_interval.pdf for details.
Variants
Mixed
Contains both negative and positive numbers.
Zero
Contains only zero.
Positive(bool)
Contains only positive numbers and maybe zero.
Negative(bool)
Contains only negative numbers and maybe zero.
Methods
impl SignClass
[src]
fn is_positive(&self) -> bool
Whether self
is SignClass::Positive(_)
.
fn is_negative(&self) -> bool
Whether self
is SignClass::Negative(_)
.
Trait Implementations
impl Clone for SignClass
[src]
fn clone(&self) -> SignClass
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Copy for SignClass
[src]
impl Debug for SignClass
[src]
impl PartialEq for SignClass
[src]
fn eq(&self, __arg_0: &SignClass) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &SignClass) -> bool
This method tests for !=
.