pub trait MoreVec<T> {
// Required methods
fn push_within_capacity_(&mut self, value: T) -> Result<(), T>;
fn extend_from_within_within_capacity<R>(
&mut self,
src: R,
) -> Result<(), ()>
where R: RangeBounds<usize>,
T: Clone;
}Required Methods§
Sourcefn push_within_capacity_(&mut self, value: T) -> Result<(), T>
fn push_within_capacity_(&mut self, value: T) -> Result<(), T>
See docs on push_within_capacity in std, which is nightly-only
Sourcefn extend_from_within_within_capacity<R>(&mut self, src: R) -> Result<(), ()>
fn extend_from_within_within_capacity<R>(&mut self, src: R) -> Result<(), ()>
Like extend_from_within but fails if the extension cannot be
done within capacity.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.