pub struct IvfQueryParams { /* private fields */ }Implementations§
Source§impl IvfQueryParams
impl IvfQueryParams
pub fn new( nprobe: i32, is_using_refiner: bool, scale_factor: f32, ) -> Result<Self>
pub fn set_nprobe(&mut self, nprobe: i32) -> Result<()>
pub fn nprobe(&self) -> i32
pub fn set_scale_factor(&mut self, f: f32) -> Result<()>
pub fn scale_factor(&self) -> f32
pub fn set_radius(&mut self, r: f32) -> Result<()>
pub fn radius(&self) -> f32
pub fn set_is_linear(&mut self, b: bool) -> Result<()>
pub fn is_linear(&self) -> bool
pub fn set_is_using_refiner(&mut self, b: bool) -> Result<()>
pub fn is_using_refiner(&self) -> bool
Trait Implementations§
Source§impl Drop for IvfQueryParams
impl Drop for IvfQueryParams
impl Send for IvfQueryParams
impl Sync for IvfQueryParams
Auto Trait Implementations§
impl Freeze for IvfQueryParams
impl RefUnwindSafe for IvfQueryParams
impl Unpin for IvfQueryParams
impl UnsafeUnpin for IvfQueryParams
impl UnwindSafe for IvfQueryParams
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