use crate::{Capacity, Clear, Push, Truncate, WithCapacity};
use core::ops::{Deref, DerefMut};
#[cfg_attr(feature = "alloc", doc = "```rust")]
#[cfg_attr(not(feature = "alloc"), doc = "```ignore")]
pub trait DynContigColl<T>:
AsRef<[T]>
+ Clear
+ Capacity
+ Default
+ Deref<Target = [T]>
+ DerefMut
+ crate::Extend<T, Error = crate::Error, Output = ()>
+ Push<T, Error = crate::Error, Output = ()>
+ Truncate<Input = usize, Output = ()>
+ WithCapacity<Input = usize>
{
}
impl<T, U> DynContigColl<T> for U where
U: AsRef<[T]>
+ Clear
+ Capacity
+ Default
+ Deref<Target = [T]>
+ DerefMut
+ crate::Extend<T, Error = crate::Error, Output = ()>
+ Push<T, Error = crate::Error, Output = ()>
+ Truncate<Input = usize, Output = ()>
+ WithCapacity<Input = usize>
{
}