#[non_exhaustive]pub enum PropertyLayerData<I>where
I: PropertyIndex,{
Dense {
values: ArrayRef,
},
Sparse {
indices: Arc<PrimitiveArray<I::ArrowType>>,
values: ArrayRef,
default: Option<ArrayRef>,
},
}Expand description
Data backing one property layer.
§Performance
Cloning is O(1) because Arrow arrays are reference-counted.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Dense
Dense Arrow array with one slot per ID index.
Sparse
Sparse Arrow array keyed by explicit indexes.
Trait Implementations§
Source§impl<I> Clone for PropertyLayerData<I>where
I: PropertyIndex,
impl<I> Clone for PropertyLayerData<I>where
I: PropertyIndex,
Auto Trait Implementations§
impl<I> !RefUnwindSafe for PropertyLayerData<I>
impl<I> !UnwindSafe for PropertyLayerData<I>
impl<I> Freeze for PropertyLayerData<I>
impl<I> Send for PropertyLayerData<I>
impl<I> Sync for PropertyLayerData<I>
impl<I> Unpin for PropertyLayerData<I>
impl<I> UnsafeUnpin for PropertyLayerData<I>
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