pub enum PythonSum {
Plain,
CompensatedFloats,
Compensated,
}Expand description
How the running CPython’s builtin sum() adds once a float has appeared -
it changed twice, and networkx’s degrees and sizes are sum()s.
Variants§
Plain
CPython 3.10 and 3.11: a plain left fold.
CompensatedFloats
CPython 3.12 and 3.13: floats Neumaier-compensated, an int added plainly.
Compensated
CPython 3.14: every add compensated, ints included.
Implementations§
Trait Implementations§
impl Copy for PythonSum
impl Eq for PythonSum
impl StructuralPartialEq for PythonSum
Auto Trait Implementations§
impl Freeze for PythonSum
impl RefUnwindSafe for PythonSum
impl Send for PythonSum
impl Sync for PythonSum
impl Unpin for PythonSum
impl UnsafeUnpin for PythonSum
impl UnwindSafe for PythonSum
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.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more