pub struct Placed { /* private fields */ }Expand description
Parts that may overlap, resolved into non-overlapping siblings. Every byte goes to the candidate whose fate at that byte (the deepest part of its subtree there, or its body’s gap fate) ranks strongest; on a tie the candidate inserted first keeps it. Each candidate is then cut to the stretches it won.
Implementations§
Source§impl Placed
impl Placed
Sourcepub fn insert(&mut self, c: Cand)
pub fn insert(&mut self, c: Cand)
Add a candidate. Insertion order breaks ties between equal fates.
Sourcepub fn into_sorted(self) -> Vec<Cand>
pub fn into_sorted(self) -> Vec<Cand>
The parts in file order: each candidate cut to the bytes it won (at
most MAX_PIECES pieces), plus an Unknown part for each stretch it
won past that cap.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Placed
impl RefUnwindSafe for Placed
impl Send for Placed
impl Sync for Placed
impl Unpin for Placed
impl UnsafeUnpin for Placed
impl UnwindSafe for Placed
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