pub struct OwnedPostingReadCursor(pub Box<dyn PostingCursor>);Expand description
Adapt an owned provider cursor without changing its incremental read strategy.
Tuple Fields§
§0: Box<dyn PostingCursor>Trait Implementations§
Source§impl PostingReadCursor for OwnedPostingReadCursor
impl PostingReadCursor for OwnedPostingReadCursor
fn doc_freq(&self) -> u64
fn current(&self) -> Option<PostingScore>
fn advance(&mut self) -> StorageBackendResult<Option<PostingScore>>
fn advance_to( &mut self, target: DocId, ) -> StorageBackendResult<Option<PostingScore>>
Auto Trait Implementations§
impl !RefUnwindSafe for OwnedPostingReadCursor
impl !Sync for OwnedPostingReadCursor
impl !UnwindSafe for OwnedPostingReadCursor
impl Freeze for OwnedPostingReadCursor
impl Send for OwnedPostingReadCursor
impl Unpin for OwnedPostingReadCursor
impl UnsafeUnpin for OwnedPostingReadCursor
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