pub struct ArrayShardedReadableExtCache { /* private fields */ }Available on crate feature
sharding only.Expand description
A cache used for methods in the ArrayShardedReadableExt trait.
Implementations§
Source§impl ArrayShardedReadableExtCache
impl ArrayShardedReadableExtCache
Sourcepub fn new<TStorage: ?Sized + ReadableStorageTraits>(
array: &Array<TStorage>,
) -> Self
pub fn new<TStorage: ?Sized + ReadableStorageTraits>( array: &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.
Sourcepub fn array_is_exclusively_sharded(&self) -> bool
pub fn array_is_exclusively_sharded(&self) -> bool
Returns true if the array is exclusively sharded (no array-to-array or bytes-to-bytes codecs).
This is cheaper than calling ArrayShardedExt::is_exclusively_sharded repeatedly.
Auto Trait Implementations§
impl Freeze for ArrayShardedReadableExtCache
impl Send for ArrayShardedReadableExtCache
impl Sync for ArrayShardedReadableExtCache
impl !RefUnwindSafe for ArrayShardedReadableExtCache
impl Unpin for ArrayShardedReadableExtCache
impl UnsafeUnpin for ArrayShardedReadableExtCache
impl !UnwindSafe for ArrayShardedReadableExtCache
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> 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