Struct timely::container::flatcontainer::impls::columns::ReadColumns

source ·
pub struct ReadColumns<'a, R, Idx>
where R: Region<Index = Idx>, Idx: Index,
{ /* private fields */ }
Expand description

Read the values of a row.

Implementations§

source§

impl<'a, R, Idx> ReadColumns<'a, R, Idx>
where R: Region<Index = Idx>, Idx: Index,

source

pub fn iter(&'a self) -> ReadColumnsIter<'a, R, Idx>

Iterate the individual values of a row.

source

pub fn get(&self, offset: usize) -> <R as Region>::ReadItem<'a>

Get the element at offset.

source

pub fn len(&self) -> usize

Returns the length of this row.

source

pub fn is_empty(&self) -> bool

Returns true if this row is empty.

Trait Implementations§

source§

impl<'a, R, Idx> Clone for ReadColumns<'a, R, Idx>
where R: Region<Index = Idx>, Idx: Index,

source§

fn clone(&self) -> ReadColumns<'a, R, Idx>

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<'a, R, Idx> CopyOnto<ColumnsRegion<R, Idx>> for ReadColumns<'a, R, Idx>
where R: Region<Index = Idx>, Idx: Index,

source§

fn copy_onto( self, target: &mut ColumnsRegion<R, Idx> ) -> <ColumnsRegion<R, Idx> as Region>::Index

Copy self into the target container, returning an index that allows to look up the corresponding read item.
source§

impl<'a, R, Idx> Debug for ReadColumns<'a, R, Idx>
where R: Region<Index = Idx>, <R as Region>::ReadItem<'a>: Debug, Idx: Index,

source§

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

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

impl<'a, R, Idx> IntoIterator for &ReadColumns<'a, R, Idx>
where R: Region<Index = Idx>, Idx: Index,

§

type Item = <R as Region>::ReadItem<'a>

The type of the elements being iterated over.
§

type IntoIter = ReadColumnsIter<'a, R, Idx>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> <&ReadColumns<'a, R, Idx> as IntoIterator>::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, R, Idx> Copy for ReadColumns<'a, R, Idx>
where R: Region<Index = Idx>, Idx: Index,

Auto Trait Implementations§

§

impl<'a, R, Idx> Freeze for ReadColumns<'a, R, Idx>

§

impl<'a, R, Idx> RefUnwindSafe for ReadColumns<'a, R, Idx>

§

impl<'a, R, Idx> Send for ReadColumns<'a, R, Idx>
where R: Sync, Idx: Sync,

§

impl<'a, R, Idx> Sync for ReadColumns<'a, R, Idx>
where R: Sync, Idx: Sync,

§

impl<'a, R, Idx> Unpin for ReadColumns<'a, R, Idx>

§

impl<'a, R, Idx> UnwindSafe for ReadColumns<'a, R, Idx>

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<R, O, T> CopyOnto<ConsecutiveOffsetPairs<R, O>> for T
where R: Region<Index = (usize, usize)>, O: OffsetContainer<usize>, T: CopyOnto<R>,

source§

fn copy_onto( self, target: &mut ConsecutiveOffsetPairs<R, O> ) -> <ConsecutiveOffsetPairs<R, O> as Region>::Index

Copy self into the target container, returning an index that allows to look up the corresponding read item.
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> ProgressEventTimestamp for T
where T: Data + Debug + Any,

source§

fn as_any(&self) -> &(dyn Any + 'static)

Upcasts this ProgressEventTimestamp to Any. Read more
source§

fn type_name(&self) -> &'static str

Returns the name of the concrete type of this object. Read more
source§

impl<R, T> PushInto<FlatStack<R>> for T
where R: Region + Clone + 'static, T: CopyOnto<R>,

source§

fn push_into(self, target: &mut FlatStack<R>)

Push self into the target container.
source§

impl<T> PushInto<Vec<T>> for T

source§

fn push_into(self, target: &mut Vec<T>)

Push self into the target container.
source§

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

§

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>,

§

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>,

§

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<T> Data for T
where T: Clone + 'static,