pub enum ColumnData<'a> {
U8(&'a [u8]),
I8(&'a [i8]),
U32(&'a [u32]),
I32(&'a [i32]),
F32(&'a [f32]),
}Expand description
A borrowed, contiguous, typed numeric column.
Every variant borrows storage owned elsewhere — a Model’s
conformation, its AtomicHierarchy, or a
TopologyColumns snapshot — so creating one never
copies.
Variants§
Implementations§
Source§impl<'a> ColumnData<'a>
impl<'a> ColumnData<'a>
Sourcepub fn scalar_type(&self) -> ScalarType
pub fn scalar_type(&self) -> ScalarType
Element type of the column.
Trait Implementations§
Source§impl<'a> Clone for ColumnData<'a>
impl<'a> Clone for ColumnData<'a>
Source§fn clone(&self) -> ColumnData<'a>
fn clone(&self) -> ColumnData<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for ColumnData<'a>
Source§impl<'a> Debug for ColumnData<'a>
impl<'a> Debug for ColumnData<'a>
Source§impl<'a> PartialEq for ColumnData<'a>
impl<'a> PartialEq for ColumnData<'a>
impl<'a> StructuralPartialEq for ColumnData<'a>
Auto Trait Implementations§
impl<'a> Freeze for ColumnData<'a>
impl<'a> RefUnwindSafe for ColumnData<'a>
impl<'a> Send for ColumnData<'a>
impl<'a> Sync for ColumnData<'a>
impl<'a> Unpin for ColumnData<'a>
impl<'a> UnsafeUnpin for ColumnData<'a>
impl<'a> UnwindSafe for ColumnData<'a>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 more