pub trait MutableArray {
type Target;
// Required methods
fn push<V>(&mut self, v: V) -> Result<(), AccessError>
where V: Into<Self::Target>;
fn pop(&mut self) -> Result<Option<Self::Target>, AccessError>;
// Provided methods
fn try_push<V>(&mut self, v: V)
where V: Into<Self::Target> { ... }
fn try_pop(&mut self) -> Option<Self::Target> { ... }
}
Expand description
Mutatability for array like values
Required Associated Types§
Required Methods§
Provided Methods§
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.