#[repr(C)]pub struct StandardCollector_PredictResult {
pub label: i32,
pub distance: f64,
}
Fields§
§label: i32
§distance: f64
Implementations§
Source§impl StandardCollector_PredictResult
impl StandardCollector_PredictResult
Sourcepub fn new(
label_: i32,
distance_: f64,
) -> Result<StandardCollector_PredictResult>
pub fn new( label_: i32, distance_: f64, ) -> Result<StandardCollector_PredictResult>
§C++ default parameters
- label_: -1
- distance_: DBL_MAX
Sourcepub fn new_def() -> Result<StandardCollector_PredictResult>
pub fn new_def() -> Result<StandardCollector_PredictResult>
§Note
This alternative version of [new] function uses the following default values for its arguments:
- label_: -1
- distance_: DBL_MAX
Trait Implementations§
Source§impl Clone for StandardCollector_PredictResult
impl Clone for StandardCollector_PredictResult
Source§fn clone(&self) -> StandardCollector_PredictResult
fn clone(&self) -> StandardCollector_PredictResult
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 PartialEq for StandardCollector_PredictResult
impl PartialEq for StandardCollector_PredictResult
Source§fn eq(&self, other: &StandardCollector_PredictResult) -> bool
fn eq(&self, other: &StandardCollector_PredictResult) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl Copy for StandardCollector_PredictResult
impl StructuralPartialEq for StandardCollector_PredictResult
Auto Trait Implementations§
impl Freeze for StandardCollector_PredictResult
impl RefUnwindSafe for StandardCollector_PredictResult
impl Send for StandardCollector_PredictResult
impl Sync for StandardCollector_PredictResult
impl Unpin for StandardCollector_PredictResult
impl UnwindSafe for StandardCollector_PredictResult
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