pub struct ChunkGrid(/* private fields */);Expand description
A chunk grid implementing ChunkGridTraits.
Implementations§
Source§impl ChunkGrid
impl ChunkGrid
Sourcepub fn new<T>(chunk_grid: T) -> ChunkGridwhere
T: ChunkGridTraits + 'static,
pub fn new<T>(chunk_grid: T) -> ChunkGridwhere
T: ChunkGridTraits + 'static,
Create a chunk grid.
Sourcepub fn metadata(&self) -> MetadataV3
pub fn metadata(&self) -> MetadataV3
Sourcepub fn from_metadata(
metadata: &MetadataV3,
array_shape: &[u64],
) -> Result<ChunkGrid, PluginCreateError>
pub fn from_metadata( metadata: &MetadataV3, array_shape: &[u64], ) -> Result<ChunkGrid, PluginCreateError>
Create a chunk grid from metadata and an array shape.
§Errors
Returns a PluginCreateError if the metadata is invalid or not associated with a registered chunk grid plugin.
Trait Implementations§
Source§impl ExtensionName for ChunkGrid
impl ExtensionName for ChunkGrid
Auto Trait Implementations§
impl Freeze for ChunkGrid
impl Send for ChunkGrid
impl Sync for ChunkGrid
impl !RefUnwindSafe for ChunkGrid
impl Unpin for ChunkGrid
impl UnsafeUnpin for ChunkGrid
impl !UnwindSafe for ChunkGrid
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