pub struct Coltainer<C: Columnar> {
pub container: C::Container,
}Expand description
Container, anchored by C to provide an owned type.
Fields§
§container: C::ContainerThe underlying columnar container.
Trait Implementations§
Source§impl<C: Columnar + Ord + Clone> BatchContainer for Coltainer<C>
impl<C: Columnar + Ord + Clone> BatchContainer for Coltainer<C>
Source§fn with_capacity(_size: usize) -> Self
fn with_capacity(_size: usize) -> Self
Creates a new container with sufficient capacity.
Source§fn merge_capacity(cont1: &Self, cont2: &Self) -> Self
fn merge_capacity(cont1: &Self, cont2: &Self) -> Self
Creates a new container with sufficient capacity.
Source§fn reborrow<'b, 'a: 'b>(item: Self::ReadItem<'a>) -> Self::ReadItem<'b>
fn reborrow<'b, 'a: 'b>(item: Self::ReadItem<'a>) -> Self::ReadItem<'b>
Converts a read item into one with a narrower lifetime.
Source§fn index(&self, index: usize) -> Self::ReadItem<'_>
fn index(&self, index: usize) -> Self::ReadItem<'_>
Reference to the element at this position.
Source§fn advance<F: for<'a> Fn(Self::ReadItem<'a>) -> bool>(
&self,
start: usize,
end: usize,
function: F,
) -> usize
fn advance<F: for<'a> Fn(Self::ReadItem<'a>) -> bool>( &self, start: usize, end: usize, function: F, ) -> usize
Reports the number of elements satisfying the predicate.
This methods relies strongly on the assumption that the predicate
stays false once it becomes false, a joint property of the predicate
and the layout of Self. This allows advance` to use exponential search to
count the number of elements in time logarithmic in the result.
Source§type ReadItem<'a> = <<C as Columnar>::Container as Borrow>::Ref<'a>
type ReadItem<'a> = <<C as Columnar>::Container as Borrow>::Ref<'a>
The type that can be read back out of the container.
Source§fn into_owned<'a>(item: Self::ReadItem<'a>) -> Self::Owned
fn into_owned<'a>(item: Self::ReadItem<'a>) -> Self::Owned
Conversion from an instance of this type to the owned type.
Source§fn clone_onto<'a>(item: Self::ReadItem<'a>, other: &mut Self::Owned)
fn clone_onto<'a>(item: Self::ReadItem<'a>, other: &mut Self::Owned)
Clones
self onto an existing instance of the owned type.Source§fn get(&self, index: usize) -> Option<Self::ReadItem<'_>>
fn get(&self, index: usize) -> Option<Self::ReadItem<'_>>
Reference to the element at this position, if it exists.
Auto Trait Implementations§
impl<C> Freeze for Coltainer<C>
impl<C> RefUnwindSafe for Coltainer<C>
impl<C> Send for Coltainer<C>
impl<C> Sync for Coltainer<C>
impl<C> Unpin for Coltainer<C>
impl<C> UnsafeUnpin for Coltainer<C>
impl<C> UnwindSafe for Coltainer<C>
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> 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 moreSource§impl<'a, S, T> Semigroup<&'a S> for Twhere
T: Semigroup<S>,
impl<'a, S, T> Semigroup<&'a S> for Twhere
T: Semigroup<S>,
Source§fn plus_equals(&mut self, rhs: &&'a S)
fn plus_equals(&mut self, rhs: &&'a S)
The method of
std::ops::AddAssign, for types that do not implement AddAssign.