pub struct PageWindow {
pub limit: Option<usize>,
pub offset: usize,
}Fields§
§limit: Option<usize>§offset: usizeImplementations§
Source§impl PageWindow
impl PageWindow
pub fn evaluate(stmt: &SelectStatement, ctx: &ExecutionContext) -> Result<Self>
pub fn retained_top_n(self) -> Option<usize>
pub fn apply( self, result: Box<dyn QueryResult>, already_applied: bool, ) -> Box<dyn QueryResult>
Trait Implementations§
Source§impl Clone for PageWindow
impl Clone for PageWindow
Source§fn clone(&self) -> PageWindow
fn clone(&self) -> PageWindow
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 moreimpl Copy for PageWindow
Source§impl Debug for PageWindow
impl Debug for PageWindow
Source§impl Default for PageWindow
impl Default for PageWindow
Source§fn default() -> PageWindow
fn default() -> PageWindow
Returns the “default value” for a type. Read more
impl Eq for PageWindow
Source§impl PartialEq for PageWindow
impl PartialEq for PageWindow
impl StructuralPartialEq for PageWindow
Auto Trait Implementations§
impl Freeze for PageWindow
impl RefUnwindSafe for PageWindow
impl Send for PageWindow
impl Sync for PageWindow
impl Unpin for PageWindow
impl UnsafeUnpin for PageWindow
impl UnwindSafe for PageWindow
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> CompactArcDrop for T
impl<T> CompactArcDrop for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.