pub struct ReadHandle<T> { /* private fields */ }
Available on non-crate feature
allocator_api
only.Expand description
The reader for a Stele
Implementations§
Source§impl<T> ReadHandle<T>
impl<T> ReadHandle<T>
Sourcepub fn len(&self) -> usize
pub fn len(&self) -> usize
Returns the current length of the underlying Stele
Note: this is an optimistic operation and the length may be changing under you
Sourcepub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
Returns the current length of the underlying Stele
Note: This is an optimistic operation as a write may happen between the operation returning and making use of the information provided
but if this returns false
it cannot return true
in the future
Sourcepub fn iter(&self) -> RefIterator<'_, T> ⓘ
pub fn iter(&self) -> RefIterator<'_, T> ⓘ
Creates a RefIterator
This is primarily used to ensure the creation of a RefIterator
when T is Copy
Trait Implementations§
Source§impl<T> Clone for ReadHandle<T>
impl<T> Clone for ReadHandle<T>
Source§impl<T: Debug> Debug for ReadHandle<T>
impl<T: Debug> Debug for ReadHandle<T>
Source§impl<T> Index<usize> for ReadHandle<T>
impl<T> Index<usize> for ReadHandle<T>
Source§impl<'a, T> IntoIterator for &'a ReadHandle<T>
impl<'a, T> IntoIterator for &'a ReadHandle<T>
Source§impl<T: Copy> IntoIterator for ReadHandle<T>
impl<T: Copy> IntoIterator for ReadHandle<T>
impl<T> Send for ReadHandle<T>
impl<T> Sync for ReadHandle<T>
Auto Trait Implementations§
impl<T> Freeze for ReadHandle<T>
impl<T> RefUnwindSafe for ReadHandle<T>
impl<T> Unpin for ReadHandle<T>
impl<T> UnwindSafe for ReadHandle<T>
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