pub struct InterleavedCoordBuffer { /* private fields */ }
Expand description
An array of coordinates stored interleaved in a single buffer.
This stores all coordinates in interleaved fashion in a single underlying buffer: e.g. xyxyxy
for 2D coordinates.
Implementations§
Source§impl InterleavedCoordBuffer
impl InterleavedCoordBuffer
Sourcepub const COORD_TYPE: CoordType = CoordType::Interleaved
pub const COORD_TYPE: CoordType = CoordType::Interleaved
The underlying coordinate type
Sourcepub fn new(coords: ScalarBuffer<f64>, dim: Dimension) -> Self
pub fn new(coords: ScalarBuffer<f64>, dim: Dimension) -> Self
Sourcepub fn try_new(
coords: ScalarBuffer<f64>,
dim: Dimension,
) -> GeoArrowResult<Self>
pub fn try_new( coords: ScalarBuffer<f64>, dim: Dimension, ) -> GeoArrowResult<Self>
Sourcepub fn from_coords<'a>(
coords: impl ExactSizeIterator<Item = &'a (impl CoordTrait<T = f64> + 'a)>,
dim: Dimension,
) -> GeoArrowResult<Self>
pub fn from_coords<'a>( coords: impl ExactSizeIterator<Item = &'a (impl CoordTrait<T = f64> + 'a)>, dim: Dimension, ) -> GeoArrowResult<Self>
Construct from an iterator of coordinates.
Sourcepub fn coords(&self) -> &ScalarBuffer<f64>
pub fn coords(&self) -> &ScalarBuffer<f64>
Access the underlying coordinate buffer.
Trait Implementations§
Source§impl Clone for InterleavedCoordBuffer
impl Clone for InterleavedCoordBuffer
Source§fn clone(&self) -> InterleavedCoordBuffer
fn clone(&self) -> InterleavedCoordBuffer
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for InterleavedCoordBuffer
impl Debug for InterleavedCoordBuffer
Source§impl From<InterleavedCoordBuffer> for CoordBuffer
impl From<InterleavedCoordBuffer> for CoordBuffer
Source§fn from(value: InterleavedCoordBuffer) -> Self
fn from(value: InterleavedCoordBuffer) -> Self
Converts to this type from the input type.
Source§impl From<InterleavedCoordBuffer> for FixedSizeListArray
impl From<InterleavedCoordBuffer> for FixedSizeListArray
Source§fn from(value: InterleavedCoordBuffer) -> Self
fn from(value: InterleavedCoordBuffer) -> Self
Converts to this type from the input type.
Source§impl PartialEq for InterleavedCoordBuffer
impl PartialEq for InterleavedCoordBuffer
impl StructuralPartialEq for InterleavedCoordBuffer
Auto Trait Implementations§
impl Freeze for InterleavedCoordBuffer
impl RefUnwindSafe for InterleavedCoordBuffer
impl Send for InterleavedCoordBuffer
impl Sync for InterleavedCoordBuffer
impl Unpin for InterleavedCoordBuffer
impl UnwindSafe for InterleavedCoordBuffer
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