pub struct GraphParams { /* private fields */ }Expand description
Validated construction controls for one flat per-segment graph.
Implementations§
Source§impl GraphParams
impl GraphParams
Sourcepub fn new(
r_target: u8,
r_max: u8,
alpha_build: f32,
alpha_refine: f32,
l_build: u16,
checkpoint_batch_rows: u32,
) -> Result<Self, GraphParamsError>
pub fn new( r_target: u8, r_max: u8, alpha_build: f32, alpha_refine: f32, l_build: u16, checkpoint_batch_rows: u32, ) -> Result<Self, GraphParamsError>
Creates validated Vamana construction controls.
Sourcepub fn with_checkpoint_batch_rows(
self,
checkpoint_batch_rows: u32,
) -> Result<Self, GraphParamsError>
pub fn with_checkpoint_batch_rows( self, checkpoint_batch_rows: u32, ) -> Result<Self, GraphParamsError>
Selects a different positive checkpoint batch size without changing graph quality.
Sourcepub const fn should_build(self, row_count: u32) -> bool
pub const fn should_build(self, row_count: u32) -> bool
Returns whether a sealed segment crosses Amendment A1’s graph threshold.
Sourcepub const fn alpha_build(self) -> f32
pub const fn alpha_build(self) -> f32
Returns the first-pass occlusion factor.
Sourcepub const fn alpha_refine(self) -> f32
pub const fn alpha_refine(self) -> f32
Returns the second-pass occlusion factor.
Sourcepub const fn checkpoint_batch_rows(self) -> u32
pub const fn checkpoint_batch_rows(self) -> u32
Returns rows processed between resumable checkpoints.
Trait Implementations§
Source§impl Clone for GraphParams
impl Clone for GraphParams
impl Copy for GraphParams
Source§impl Debug for GraphParams
impl Debug for GraphParams
Source§impl PartialEq for GraphParams
impl PartialEq for GraphParams
impl StructuralPartialEq for GraphParams
Auto Trait Implementations§
impl Freeze for GraphParams
impl RefUnwindSafe for GraphParams
impl Send for GraphParams
impl Sync for GraphParams
impl Unpin for GraphParams
impl UnsafeUnpin for GraphParams
impl UnwindSafe for GraphParams
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