pub struct Chains { /* private fields */ }Expand description
Positions grouped by a 64-bit key, such as a hash. A map gives the first and last position pushed with each key, and each position links to the next one pushed with the same key. Positions pushed in order give chains in order.
Implementations§
Source§impl Chains
impl Chains
Sourcepub fn push_new(&mut self, key: u64, i: usize, copy: impl Fn(usize) -> bool)
pub fn push_new(&mut self, key: u64, i: usize, copy: impl Fn(usize) -> bool)
Adds i to the end of key’s chain, unless copy holds for a position already in it. One map lookup does both.
Auto Trait Implementations§
impl Forget for Chains
impl Freeze for Chains
impl RefUnwindSafe for Chains
impl Send for Chains
impl Sync for Chains
impl Unpin for Chains
impl UnsafeUnpin for Chains
impl UnwindSafe for Chains
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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