|
|
@ -408,6 +408,26 @@ impl<'a, T> Populator<'a, T>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// Returns a slice of all the elements
|
|
|
|
|
|
|
|
///
|
|
|
|
|
|
|
|
/// # Panics
|
|
|
|
|
|
|
|
/// If the collection was not full.
|
|
|
|
|
|
|
|
#[inline]
|
|
|
|
|
|
|
|
pub fn completed_ref(&self) -> &[T]
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
self.try_completed_ref().expect("Collection was not fully populated")
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// Returns a mutable slice of all the elements
|
|
|
|
|
|
|
|
///
|
|
|
|
|
|
|
|
/// # Panics
|
|
|
|
|
|
|
|
/// If the collection was not full.
|
|
|
|
|
|
|
|
#[inline]
|
|
|
|
|
|
|
|
pub fn completed_mut(&mut self) -> &[T]
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
self.try_completed_mut().expect("Collection was not fully populated")
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// If all values are populated, returns a mutable slice of all the elements.
|
|
|
|
/// If all values are populated, returns a mutable slice of all the elements.
|
|
|
|
///
|
|
|
|
///
|
|
|
|
/// # Exclusivity
|
|
|
|
/// # Exclusivity
|
|
|
|