pub struct FilteredRevisionPage { /* private fields */ }Expand description
One page of revisions that contain at least one event of a filter’s types.
Every matching revision with a sequence greater than the requested sequence
and at most Self::through_sequence is in the page. The through sequence
is the cursor for the next filtered page.
Implementations§
Source§impl FilteredRevisionPage
impl FilteredRevisionPage
Sourcepub fn new(revisions: Vec<Revision>, through_sequence: u64) -> Result<Self>
pub fn new(revisions: Vec<Revision>, through_sequence: u64) -> Result<Self>
Creates a page from ascending matching revisions and its covered range end.
§Errors
Returns ErrorKind::InvalidArgument when revisions are not strictly
ascending or one lies beyond through_sequence.
Sourcepub fn revisions(&self) -> &[Revision]
pub fn revisions(&self) -> &[Revision]
Returns the matching revisions in ascending sequence order.
Sourcepub fn into_revisions(self) -> Vec<Revision>
pub fn into_revisions(self) -> Vec<Revision>
Consumes the page and returns its matching revisions.
Sourcepub const fn through_sequence(&self) -> u64
pub const fn through_sequence(&self) -> u64
Returns the last sequence this page accounts for; the next cursor.
Trait Implementations§
Source§impl Clone for FilteredRevisionPage
impl Clone for FilteredRevisionPage
Source§fn clone(&self) -> FilteredRevisionPage
fn clone(&self) -> FilteredRevisionPage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FilteredRevisionPage
impl Debug for FilteredRevisionPage
impl Eq for FilteredRevisionPage
Source§impl PartialEq for FilteredRevisionPage
impl PartialEq for FilteredRevisionPage
impl StructuralPartialEq for FilteredRevisionPage
Auto Trait Implementations§
impl Freeze for FilteredRevisionPage
impl RefUnwindSafe for FilteredRevisionPage
impl Send for FilteredRevisionPage
impl Sync for FilteredRevisionPage
impl Unpin for FilteredRevisionPage
impl UnsafeUnpin for FilteredRevisionPage
impl UnwindSafe for FilteredRevisionPage
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