pub struct Vector(_);
Expand description
Vector of Value
This currently wraps a Vec<Value>
but could be implemented with
a bitmap in the future.
Implementations§
source§impl Vector
impl Vector
sourcepub fn iter(&self) -> VectorIter<'_> ⓘ
pub fn iter(&self) -> VectorIter<'_> ⓘ
Returns an iterator over the values in the vector.
sourcepub fn get(&self, i: usize) -> Option<Value>
pub fn get(&self, i: usize) -> Option<Value>
Get a bit of the vector by index, or None
if out-of-bounds.
Trait Implementations§
source§impl FromIterator<Value> for Vector
impl FromIterator<Value> for Vector
source§impl<'a> IntoIterator for &'a Vector
impl<'a> IntoIterator for &'a Vector
source§impl PartialEq<Vector> for Vector
impl PartialEq<Vector> for Vector
impl Eq for Vector
impl StructuralEq for Vector
impl StructuralPartialEq for Vector
Auto Trait Implementations§
impl RefUnwindSafe for Vector
impl Send for Vector
impl Sync for Vector
impl Unpin for Vector
impl UnwindSafe for Vector
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more