Struct gluesql_utils::Vector
source · [−]pub struct Vector<T>(_);Implementations
sourceimpl<T> Vector<T>
impl<T> Vector<T>
pub fn new() -> Self
pub fn push(self, value: T) -> Self
pub fn update(self, i: usize, value: T) -> Self
pub fn remove(self, i: usize) -> Self
pub fn reverse(self) -> Self
pub fn sort(self) -> Self where
T: Ord,
pub fn sort_by<F>(self, compare: F) -> Self where
F: FnMut(&T, &T) -> Ordering,
pub fn pop(self) -> (Self, Option<T>)
pub fn get(&self, i: usize) -> Option<&T>
Trait Implementations
sourceimpl<T> FromIterator<T> for Vector<T>
impl<T> FromIterator<T> for Vector<T>
sourcefn from_iter<I>(iter: I) -> Self where
I: IntoIterator<Item = T>,
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator<Item = T>,
Creates a value from an iterator. Read more
sourceimpl<T> IntoIterator for Vector<T>
impl<T> IntoIterator for Vector<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for Vector<T> where
T: RefUnwindSafe,
impl<T> Send for Vector<T> where
T: Send,
impl<T> Sync for Vector<T> where
T: Sync,
impl<T> Unpin for Vector<T> where
T: Unpin,
impl<T> UnwindSafe for Vector<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more