pub struct TestSegments { /* private fields */ }Expand description
A dummy in-memory implementation of a segment reader and writer.
Trait Implementations§
Source§impl Clone for TestSegments
impl Clone for TestSegments
Source§fn clone(&self) -> TestSegments
fn clone(&self) -> TestSegments
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for TestSegments
impl Default for TestSegments
Source§fn default() -> TestSegments
fn default() -> TestSegments
Returns the “default value” for a type. Read more
Source§impl SegmentSource for TestSegments
impl SegmentSource for TestSegments
Source§impl SegmentWriter for TestSegments
impl SegmentWriter for TestSegments
Source§fn put(
&mut self,
_segment_id: SegmentId,
data: Vec<ByteBuffer>,
) -> VortexResult<()>
fn put( &mut self, _segment_id: SegmentId, data: Vec<ByteBuffer>, ) -> VortexResult<()>
Write the given data into a segment and associate it with the given segment identifier.
The provided buffers are concatenated together to form the segment.
Auto Trait Implementations§
impl Freeze for TestSegments
impl !RefUnwindSafe for TestSegments
impl Send for TestSegments
impl Sync for TestSegments
impl Unpin for TestSegments
impl !UnwindSafe for TestSegments
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more