rust: pub export the VectorIter type (#5736)

This commit is contained in:
jean-airoldie
2020-03-09 20:25:03 -04:00
committed by GitHub
parent 89b6183ee9
commit 95a21327fc
2 changed files with 2 additions and 1 deletions

View File

@@ -46,7 +46,7 @@ pub use follow::{Follow, FollowStart};
pub use primitives::*;
pub use push::Push;
pub use table::{buffer_has_identifier, get_root, get_size_prefixed_root, Table};
pub use vector::{follow_cast_ref, SafeSliceAccess, Vector};
pub use vector::{follow_cast_ref, SafeSliceAccess, Vector, VectorIter};
pub use vtable::field_index_to_field_offset;
// TODO(rw): Unify `create_vector` and `create_vector_direct` by using

View File

@@ -154,6 +154,7 @@ impl<'a, T: Follow<'a> + 'a> Follow<'a> for Vector<'a, T> {
}
}
/// An iterator over a `Vector`.
#[derive(Debug)]
pub struct VectorIter<'a, T: 'a> {
buf: &'a [u8],