pub struct AcceptLimitedAverageDifferenceSolver { /* private fields */ }Implementations§
Trait Implementations§
Source§impl CollisionSolver for AcceptLimitedAverageDifferenceSolver
impl CollisionSolver for AcceptLimitedAverageDifferenceSolver
Source§fn is_under_collision(&self, _index: usize) -> bool
fn is_under_collision(&self, _index: usize) -> bool
Returns true if
index is under collision and should not be farther processed.Source§fn process_fragment(
&mut self,
index: usize,
fragment: u8,
_bits_per_fragment: u8,
)
fn process_fragment( &mut self, index: usize, fragment: u8, _bits_per_fragment: u8, )
Try to assign value (
bits_per_fragment bits of fragment) to the given index which is not under collision.Source§fn to_collision_array(self) -> Box<[u64]>
fn to_collision_array(self) -> Box<[u64]>
Array that shows indices which have assigned values and are not under collision.
fn construct_value_array( number_of_values: usize, bits_per_fragment: u8, ) -> Box<[u64]>
Auto Trait Implementations§
impl Freeze for AcceptLimitedAverageDifferenceSolver
impl RefUnwindSafe for AcceptLimitedAverageDifferenceSolver
impl Send for AcceptLimitedAverageDifferenceSolver
impl Sync for AcceptLimitedAverageDifferenceSolver
impl Unpin for AcceptLimitedAverageDifferenceSolver
impl UnwindSafe for AcceptLimitedAverageDifferenceSolver
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> 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