push-in-place 0.1.0

Implement pushing in place for a vector.
Documentation
1
2
3
4
5
6
7
8
9
10
pub trait PushInPlace<T> {
    fn push_in_place(self, value: T) -> Self;
}

impl<T> PushInPlace<T> for Vec<T> {
    fn push_in_place(mut self, value: T) -> Self {
        self.push(value);
        self
    }
}