pub struct OofCandidates {
inner: Option<Box<Vec<OofCandidate>>>,
}Expand description
A list of OofCandidates.
This is a lazily-allocated heap vector (an empty list performs no allocation).
Fields§
§inner: Option<Box<Vec<OofCandidate>>>Backing storage for the candidates
Implementations§
Source§impl OofCandidates
impl OofCandidates
Sourcepub fn as_slice(&self) -> &[OofCandidate]
pub fn as_slice(&self) -> &[OofCandidate]
The candidates as a slice
Sourcepub fn as_mut_slice(&mut self) -> &mut [OofCandidate]
pub fn as_mut_slice(&mut self) -> &mut [OofCandidate]
The candidates as a mutable slice
Sourcepub fn push(&mut self, candidate: OofCandidate)
pub fn push(&mut self, candidate: OofCandidate)
Append a candidate to the list
Sourcepub fn append(&mut self, other: &mut OofCandidates)
pub fn append(&mut self, other: &mut OofCandidates)
Move all candidates from other into self, leaving other empty
Sourcepub fn iter(&self) -> Iter<'_, OofCandidate> ⓘ
pub fn iter(&self) -> Iter<'_, OofCandidate> ⓘ
Iterate over the candidates
Trait Implementations§
Source§impl Clone for OofCandidates
impl Clone for OofCandidates
Source§fn clone(&self) -> OofCandidates
fn clone(&self) -> OofCandidates
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 OofCandidates
impl Debug for OofCandidates
Source§impl Default for OofCandidates
impl Default for OofCandidates
Source§fn default() -> OofCandidates
fn default() -> OofCandidates
Returns the “default value” for a type. Read more
Source§impl<'a> IntoIterator for &'a OofCandidates
impl<'a> IntoIterator for &'a OofCandidates
Source§impl PartialEq for OofCandidates
impl PartialEq for OofCandidates
impl StructuralPartialEq for OofCandidates
Auto Trait Implementations§
impl Freeze for OofCandidates
impl RefUnwindSafe for OofCandidates
impl Send for OofCandidates
impl Sync for OofCandidates
impl Unpin for OofCandidates
impl UnsafeUnpin for OofCandidates
impl UnwindSafe for OofCandidates
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