pub enum CollatzParity {
Even,
Odd,
}Expand description
The parity of a positive integer in a Collatz trajectory.
Variants§
Trait Implementations§
Source§impl Clone for CollatzParity
impl Clone for CollatzParity
Source§fn clone(&self) -> CollatzParity
fn clone(&self) -> CollatzParity
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 CollatzParity
impl Debug for CollatzParity
Source§impl Hash for CollatzParity
impl Hash for CollatzParity
Source§impl PartialEq for CollatzParity
impl PartialEq for CollatzParity
Source§fn eq(&self, other: &CollatzParity) -> bool
fn eq(&self, other: &CollatzParity) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for CollatzParity
impl Eq for CollatzParity
impl StructuralPartialEq for CollatzParity
Auto Trait Implementations§
impl Freeze for CollatzParity
impl RefUnwindSafe for CollatzParity
impl Send for CollatzParity
impl Sync for CollatzParity
impl Unpin for CollatzParity
impl UnsafeUnpin for CollatzParity
impl UnwindSafe for CollatzParity
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