pub struct IntegerValues { /* private fields */ }Expand description
An owned named nullable column of exact integers.
Implementations§
Source§impl IntegerValues
impl IntegerValues
Sourcepub fn new(
name: impl Into<String>,
values: impl IntoIterator<Item = ExactInteger>,
) -> Result<Self>
pub fn new( name: impl Into<String>, values: impl IntoIterator<Item = ExactInteger>, ) -> Result<Self>
Capture a complete integer column.
Sourcepub fn nullable(
name: impl Into<String>,
values: impl IntoIterator<Item = Option<ExactInteger>>,
) -> Result<Self>
pub fn nullable( name: impl Into<String>, values: impl IntoIterator<Item = Option<ExactInteger>>, ) -> Result<Self>
Capture an integer column with missing entries independent of value.
Sourcepub fn get(&self, index: usize) -> Option<Option<&ExactInteger>>
pub fn get(&self, index: usize) -> Option<Option<&ExactInteger>>
Read one slot, retaining the distinction between missing and out of bounds.
Sourcepub fn iter(&self) -> impl ExactSizeIterator<Item = Option<&ExactInteger>> + '_
pub fn iter(&self) -> impl ExactSizeIterator<Item = Option<&ExactInteger>> + '_
Iterate the original integer slots.
Trait Implementations§
Source§impl Clone for IntegerValues
impl Clone for IntegerValues
Source§impl Debug for IntegerValues
impl Debug for IntegerValues
impl Eq for IntegerValues
Auto Trait Implementations§
impl Forget for IntegerValues
impl Freeze for IntegerValueswhere
*const ArcInner<str> is !null: Freeze,
PhantomData<ArcInner<str>>: Freeze,
*const ArcInner<[Option<ExactInteger>]> is !null: Freeze,
PhantomData<ArcInner<[Option<ExactInteger>]>>: Freeze,
*const ArcInner<SourceInfo> is !null: Freeze,
PhantomData<ArcInner<SourceInfo>>: Freeze,
*const ArcInner<SourceProjection> is !null: Freeze,
PhantomData<ArcInner<SourceProjection>>: Freeze,
impl Move for IntegerValues
impl RefUnwindSafe for IntegerValues
impl Send for IntegerValues
impl Sync for IntegerValues
impl Unpin for IntegerValues
impl UnsafeUnpin for IntegerValueswhere
*const ArcInner<str> is !null: UnsafeUnpin,
PhantomData<ArcInner<str>>: UnsafeUnpin,
*const ArcInner<[Option<ExactInteger>]> is !null: UnsafeUnpin,
PhantomData<ArcInner<[Option<ExactInteger>]>>: UnsafeUnpin,
*const ArcInner<SourceInfo> is !null: UnsafeUnpin,
PhantomData<ArcInner<SourceInfo>>: UnsafeUnpin,
*const ArcInner<SourceProjection> is !null: UnsafeUnpin,
PhantomData<ArcInner<SourceProjection>>: UnsafeUnpin,
impl UnwindSafe for IntegerValueswhere
Arc<str>: UnwindSafe,
Arc<[Option<ExactInteger>]>: UnwindSafe,
Arc<SourceInfo>: UnwindSafe,
Arc<SourceProjection>: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.