Struct RleCursor

Source
pub struct RleCursor<const B: usize, P: Packable + ?Sized, X = SlabWeight> { /* private fields */ }

Trait Implementations§

Source§

impl<const B: usize, P: Packable + ?Sized, X> Clone for RleCursor<B, P, X>

Source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<const B: usize, P: Packable + ?Sized, X: HasPos + HasAcc + SpanWeight<Slab>> ColumnCursor for RleCursor<B, P, X>

Source§

type Item = P

Source§

type State<'a> = RleState<'a, P> where P: 'a

Source§

type PostState<'a> = Option<Run<'a, <RleCursor<B, P, X> as ColumnCursor>::Item>> where Self::Item: 'a

Source§

type Export = Option<<P as ToOwned>::Owned>

Source§

type SlabIndex = X

Source§

fn empty() -> Self

Source§

fn acc(&self) -> Acc

Source§

fn copy_between<'a>( slab: &'a [u8], writer: &mut SlabWriter<'a, P>, c0: Self, c1: Self, run: Run<'a, Self::Item>, size: usize, ) -> Self::State<'a>

Source§

fn finalize_state<'a>( slab: &'a Slab, encoder: &mut Encoder<'a, Self>, post: Option<Run<'a, P>>, cursor: Self, ) -> Option<Self>

Source§

fn finish<'a>(slab: &'a Slab, writer: &mut SlabWriter<'a, P>, cursor: Self)

Source§

fn slab_size() -> usize

Source§

fn splice_encoder( index: usize, del: usize, slab: &Slab, ) -> SpliceEncoder<'_, Self>

Source§

fn export_splice<'a, I>( data: &mut Vec<Self::Export>, range: Range<usize>, values: I, )
where I: Iterator<Item = Option<Cow<'a, Self::Item>>>, Self::Item: 'a,

Source§

fn compute_min_max(slabs: &mut [Slab])

Source§

fn min(&self) -> Agg

Source§

fn max(&self) -> Agg

Source§

fn try_next<'a>( &mut self, slab: &'a [u8], ) -> Result<Option<Run<'a, Self::Item>>, PackError>

Source§

fn index(&self) -> usize

Source§

fn offset(&self) -> usize

Source§

fn load_with(data: &[u8], m: &ScanMeta) -> Result<ColumnData<Self>, PackError>

Source§

fn encode<'a, I>(out: &mut Vec<u8>, values: I, force: bool) -> Range<usize>
where I: Iterator<Item = Option<Cow<'a, Self::Item>>>, Self::Item: 'a,

Source§

fn new(_: &Slab) -> Self

Source§

fn iter(slab: &[u8]) -> CursorIter<'_, Self>

Source§

fn is_empty(v: Option<Cow<'_, Self::Item>>) -> bool

Source§

fn contains_range( &self, run: &Run<'_, Self::Item>, range: &Range<usize>, ) -> Option<Range<usize>>

Source§

fn contains( &self, run: &Run<'_, Self::Item>, target: Agg, ) -> Option<Range<usize>>

Source§

fn contains_agg( &self, run: &Run<'_, Self::Item>, agg: Agg, ) -> Option<Range<usize>>

Source§

fn pop<'a>( &self, run: &mut Run<'a, Self::Item>, ) -> Option<Option<Cow<'a, Self::Item>>>

Source§

fn pop_n<'a>( &self, run: &mut Run<'a, Self::Item>, n: usize, ) -> Option<Option<Cow<'a, Self::Item>>>

Source§

fn next<'a>(&mut self, data: &'a [u8]) -> Option<Run<'a, Self::Item>>

Source§

fn seek(index: usize, slab: &Slab) -> (Option<Run<'_, Self::Item>>, Self)

Source§

fn debug_scan(data: &[u8], m: &ScanMeta) -> Result<Self, PackError>

Source§

fn load(data: &[u8]) -> Result<ColumnData<Self>, PackError>

Source§

fn splice<'a, 'b, I, M>( slab: &'a Slab, index: usize, del: usize, values: I, debug: (&mut Vec<Self::Export>, Range<usize>), ) -> SpliceResult
where M: MaybePackable<'b, Self::Item>, I: Iterator<Item = M>, Self::Item: 'b,

Source§

fn splice_delete<'a>( _post: Option<Run<'a, Self::Item>>, _cursor: Self, _del: usize, slab: &'a Slab, ) -> SpliceDel<'a, Self>

Source§

fn init_empty(len: usize) -> Slab

Source§

impl<const B: usize, P: Debug + Packable + ?Sized, X: Debug> Debug for RleCursor<B, P, X>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<const B: usize, P: Packable + ?Sized, X> Default for RleCursor<B, P, X>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<const B: usize, P: PartialEq + Packable + ?Sized, X: PartialEq> PartialEq for RleCursor<B, P, X>

Source§

fn eq(&self, other: &RleCursor<B, P, X>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<const B: usize, P: Packable + ?Sized, X> Copy for RleCursor<B, P, X>

Source§

impl<const B: usize, P: Packable + ?Sized, X> StructuralPartialEq for RleCursor<B, P, X>

Auto Trait Implementations§

§

impl<const B: usize, P, X> Freeze for RleCursor<B, P, X>
where <P as ToOwned>::Owned: Sized, P: ?Sized,

§

impl<const B: usize, P, X> RefUnwindSafe for RleCursor<B, P, X>
where <P as ToOwned>::Owned: Sized, P: RefUnwindSafe + ?Sized, X: RefUnwindSafe,

§

impl<const B: usize, P, X> Send for RleCursor<B, P, X>
where <P as ToOwned>::Owned: Sized, P: Send + ?Sized, X: Send,

§

impl<const B: usize, P, X> Sync for RleCursor<B, P, X>
where <P as ToOwned>::Owned: Sized, P: Sync + ?Sized, X: Sync,

§

impl<const B: usize, P, X> Unpin for RleCursor<B, P, X>
where <P as ToOwned>::Owned: Sized, P: Unpin + ?Sized, X: Unpin,

§

impl<const B: usize, P, X> UnwindSafe for RleCursor<B, P, X>
where <P as ToOwned>::Owned: Sized, P: UnwindSafe + ?Sized, X: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.