pub struct MergeCandidateList { /* private fields */ }Expand description
Merge candidate list.
Implementations§
Source§impl MergeCandidateList
impl MergeCandidateList
Sourcepub fn add(&mut self, candidate: MergeCandidate)
pub fn add(&mut self, candidate: MergeCandidate)
Adds a candidate.
Sourcepub const fn get(&self, index: usize) -> Option<&MergeCandidate>
pub const fn get(&self, index: usize) -> Option<&MergeCandidate>
Gets a candidate by index.
Sourcepub fn as_slice(&self) -> &[MergeCandidate]
pub fn as_slice(&self) -> &[MergeCandidate]
Returns candidates as slice.
Trait Implementations§
Source§impl Clone for MergeCandidateList
impl Clone for MergeCandidateList
Source§fn clone(&self) -> MergeCandidateList
fn clone(&self) -> MergeCandidateList
Returns a duplicate of the value. Read more
1.0.0 · 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 MergeCandidateList
impl Debug for MergeCandidateList
Auto Trait Implementations§
impl Freeze for MergeCandidateList
impl RefUnwindSafe for MergeCandidateList
impl Send for MergeCandidateList
impl Sync for MergeCandidateList
impl Unpin for MergeCandidateList
impl UnsafeUnpin for MergeCandidateList
impl UnwindSafe for MergeCandidateList
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<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