[][src]Struct v9::id::IdList

pub struct IdList<M: TableMarker> {
    pub free: RunList<M>,
    // some fields omitted
}

Fields

free: RunList<M>

Methods

impl<M: TableMarker> IdList<M>[src]

pub fn len(&self) -> usize[src]

pub fn outer_capacity(&self) -> usize[src]

pub unsafe fn set_outer_capacity(&mut self, outer_capacity: usize)[src]

pub fn exists(&self, id: Id<M>) -> bool[src]

pub fn flush(&mut self, universe: &Universe, tracked_events: u8)[src]

pub fn write_deletions(&mut self)[src]

Important traits for CheckedIter<'a, M>
pub fn iter(&self) -> CheckedIter<M>[src]

Important traits for CheckedIter<'a, M>
pub fn range(&self, range: UncheckedIdRange<M>) -> CheckedIter<M>[src]

pub fn delete(&mut self, id: Id<M>)[src]

pub fn delete_extend(&mut self, i: impl Iterator<Item = Id<M>>)[src]

pub fn delete_extend_ranges(
    &mut self,
    i: impl Iterator<Item = RangeInclusive<Id<M>>>
)
[src]

Important traits for ListRemoving<'a, M>
pub fn removing(&mut self) -> ListRemoving<'static, M>[src]

pub unsafe fn recycle_id(&mut self) -> Result<Id<M>, Id<M>>[src]

Creates a new Id, or returns a previously deleted Id. This function is unsafe because it does not push anything to the column's Vecs.

pub unsafe fn recycle_id_contiguous(
    &mut self,
    n: usize
) -> Result<UncheckedIdRange<M>, UncheckedIdRange<M>>
[src]

Note: This method is O(self.free.data.len())

pub fn next(&self) -> Id<M>[src]

The next Id that will be used for the next call to push. Be aware that calling this multiple times will return the same ID.

pub fn check<'a, 'b>(&'a self, i: impl Check<M = M> + 'b) -> CheckedId<'a, M>[src]

Trait Implementations

impl<'a, M: TableMarker> Extract for &'a mut IdList<M>[src]

type Owned = Self

type Cleanup = IdListCleanup

Default is (), which does nothing.

impl<'a, M: TableMarker> ExtractOwned for &'a IdList<M>[src]

type Ty = IdList<M>

impl<'a, M: TableMarker> IntoIterator for &'a IdList<M>[src]

type Item = CheckedId<'a, M>

The type of the elements being iterated over.

type IntoIter = CheckedIter<'a, M>

Which kind of iterator are we turning this into?

impl<M: Default + TableMarker> Default for IdList<M>[src]

impl<M: Debug + TableMarker> Debug for IdList<M>[src]

Auto Trait Implementations

impl<M> Send for IdList<M> where
    <M as TableMarker>::RawId: Send

impl<M> Sync for IdList<M> where
    <M as TableMarker>::RawId: Sync

impl<M> Unpin for IdList<M> where
    <M as TableMarker>::RawId: Unpin

impl<M> UnwindSafe for IdList<M> where
    <M as TableMarker>::RawId: RefUnwindSafe + UnwindSafe

impl<M> !RefUnwindSafe for IdList<M>

Blanket Implementations

impl<X> ForeignKey for X[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]