Struct zarrs::array::ArrayShardedReadableExtCache
source · pub struct ArrayShardedReadableExtCache<'a> { /* private fields */ }
Available on crate feature
sharding
only.Expand description
A cache used for methods in the ArrayShardedReadableExt
trait.
Implementations§
source§impl<'a> ArrayShardedReadableExtCache<'a>
impl<'a> ArrayShardedReadableExtCache<'a>
sourcepub fn new<TStorage: ?Sized + ReadableStorageTraits + 'static>(
array: &'a Array<TStorage>
) -> Self
pub fn new<TStorage: ?Sized + ReadableStorageTraits + 'static>( array: &'a Array<TStorage> ) -> Self
Create a new cache for an array.
sourcepub fn array_is_sharded(&self) -> bool
pub fn array_is_sharded(&self) -> bool
Returns true if the array is sharded.
This is cheaper than calling ArrayShardedExt::is_sharded
repeatedly.
Auto Trait Implementations§
impl<'a> Freeze for ArrayShardedReadableExtCache<'a>
impl<'a> !RefUnwindSafe for ArrayShardedReadableExtCache<'a>
impl<'a> Send for ArrayShardedReadableExtCache<'a>
impl<'a> Sync for ArrayShardedReadableExtCache<'a>
impl<'a> Unpin for ArrayShardedReadableExtCache<'a>
impl<'a> !UnwindSafe for ArrayShardedReadableExtCache<'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