Skip to main content

ColumnPool

Struct ColumnPool 

Source
pub struct ColumnPool<ColumnType, FilterType> { /* private fields */ }
Expand description

Holds all columns generated so far

Implementations§

Source§

impl<ColumnType, FilterType> ColumnPool<ColumnType, FilterType>

Source

pub fn new() -> Self

Source§

impl<ColumnType, FilterType> ColumnPool<ColumnType, FilterType>

Source

pub fn count(&self) -> usize

Total number of columns in pool

Source

pub fn get_column(&self, id: ColumnId) -> &Column<ColumnType>

Returns a specific column from the pool

Source

pub fn get_all_columns(&self) -> (ColumnTicket, Iter<'_, Column<ColumnType>>)

Get Iterator of all columns in column pool and associated ticket

Source

pub fn add_column( &mut self, column_data: ColumnType, column_ticket: ColumnTicket, ) -> bool
where ColumnType: PartialEq,

Adds a column to the column pool The column_ticket that was handed out during get_columns must be returned, to ensure column pool consistency in a multithreaded environment

Trait Implementations§

Source§

impl<ColumnType, FilterType> Clone for ColumnPool<ColumnType, FilterType>
where ColumnType: Clone,

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more

Auto Trait Implementations§

§

impl<ColumnType, FilterType> Freeze for ColumnPool<ColumnType, FilterType>

§

impl<ColumnType, FilterType> RefUnwindSafe for ColumnPool<ColumnType, FilterType>
where FilterType: RefUnwindSafe, ColumnType: RefUnwindSafe,

§

impl<ColumnType, FilterType> Send for ColumnPool<ColumnType, FilterType>
where FilterType: Send, ColumnType: Send,

§

impl<ColumnType, FilterType> Sync for ColumnPool<ColumnType, FilterType>
where FilterType: Sync, ColumnType: Sync,

§

impl<ColumnType, FilterType> Unpin for ColumnPool<ColumnType, FilterType>
where FilterType: Unpin, ColumnType: Unpin,

§

impl<ColumnType, FilterType> UnsafeUnpin for ColumnPool<ColumnType, FilterType>

§

impl<ColumnType, FilterType> UnwindSafe for ColumnPool<ColumnType, FilterType>
where FilterType: UnwindSafe, ColumnType: 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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

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> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

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.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V