pub struct ChunkMapSource<S> { /* private fields */ }Expand description
Bounded source adapter for chunk-local crop and affine transform operations.
Implementations§
Source§impl<S> ChunkMapSource<S>where
S: BoundedSpatialRecordSource,
impl<S> ChunkMapSource<S>where
S: BoundedSpatialRecordSource,
Sourcepub fn crop(
source: S,
min: [f32; 3],
max: [f32; 3],
invert: bool,
) -> Result<ChunkMapSource<S>, RecordsError>
pub fn crop( source: S, min: [f32; 3], max: [f32; 3], invert: bool, ) -> Result<ChunkMapSource<S>, RecordsError>
Creates a crop adapter and validates ordered finite bounds.
Sourcepub fn transform(
source: S,
transform: Mat4<f32>,
) -> Result<ChunkMapSource<S>, RecordsError>
pub fn transform( source: S, transform: Mat4<f32>, ) -> Result<ChunkMapSource<S>, RecordsError>
Creates an affine transform adapter.
Sourcepub fn into_inner(self) -> S
pub fn into_inner(self) -> S
Consumes the adapter and returns the upstream source.
Trait Implementations§
Source§impl<S> BoundedSpatialRecordSource for ChunkMapSource<S>where
S: BoundedSpatialRecordSource,
impl<S> BoundedSpatialRecordSource for ChunkMapSource<S>where
S: BoundedSpatialRecordSource,
Source§fn schema(&self) -> &SchemaDescriptor
fn schema(&self) -> &SchemaDescriptor
Schema shared by every emitted record.
Source§fn options(&self) -> &StreamOptions
fn options(&self) -> &StreamOptions
Validated execution options.
Source§fn memory_tracker(&self) -> &MemoryTracker
fn memory_tracker(&self) -> &MemoryTracker
Exact tracker shared by emitted chunk leases.
Source§fn cancellation_token(&self) -> CancellationToken
fn cancellation_token(&self) -> CancellationToken
Cooperative cancellation state checked at chunk boundaries.
Source§fn max_chunk_bytes(&self) -> u64
fn max_chunk_bytes(&self) -> u64
Conservative maximum resident bytes for one emitted chunk.
Source§fn next_chunk(&mut self) -> Option<Result<SpatialRecordChunk, RecordsError>>
fn next_chunk(&mut self) -> Option<Result<SpatialRecordChunk, RecordsError>>
Returns the next leased chunk, or
None after an explicit end.Auto Trait Implementations§
impl<S> Freeze for ChunkMapSource<S>where
S: Freeze,
impl<S> RefUnwindSafe for ChunkMapSource<S>where
S: RefUnwindSafe,
impl<S> Send for ChunkMapSource<S>where
S: Send,
impl<S> Sync for ChunkMapSource<S>where
S: Sync,
impl<S> Unpin for ChunkMapSource<S>where
S: Unpin,
impl<S> UnsafeUnpin for ChunkMapSource<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for ChunkMapSource<S>where
S: 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<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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