pub struct PageRangeConfig {
pub range: PageRange,
pub include_boundary_nodes: bool,
pub expand_context_pages: usize,
pub min_overlap_ratio: f32,
}Expand description
Configuration for page-range retrieval.
Fields§
§range: PageRangeThe page range to search within.
include_boundary_nodes: boolWhether to include nodes that span across the boundary.
expand_context_pages: usizeWhether to expand the range slightly for context.
min_overlap_ratio: f32Minimum overlap ratio for a node to be included.
Implementations§
Source§impl PageRangeConfig
impl PageRangeConfig
Sourcepub fn with_range(self, start: usize, end: usize) -> Self
pub fn with_range(self, start: usize, end: usize) -> Self
Set the page range.
Sourcepub fn with_boundary_nodes(self, include: bool) -> Self
pub fn with_boundary_nodes(self, include: bool) -> Self
Include nodes that span the boundary.
Sourcepub fn with_context_expansion(self, pages: usize) -> Self
pub fn with_context_expansion(self, pages: usize) -> Self
Expand the range by N pages for context.
Trait Implementations§
Source§impl Clone for PageRangeConfig
impl Clone for PageRangeConfig
Source§fn clone(&self) -> PageRangeConfig
fn clone(&self) -> PageRangeConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 PageRangeConfig
impl Debug for PageRangeConfig
Auto Trait Implementations§
impl Freeze for PageRangeConfig
impl RefUnwindSafe for PageRangeConfig
impl Send for PageRangeConfig
impl Sync for PageRangeConfig
impl Unpin for PageRangeConfig
impl UnsafeUnpin for PageRangeConfig
impl UnwindSafe for PageRangeConfig
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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