pub struct DetectBoxQuantized<SCORE: PrimInt + AsPrimitive<f32>> {
pub bbox: BoundingBox,
pub score: SCORE,
pub label: usize,
}Expand description
A detection box with a f32 bbox and quantized score
Fields§
§bbox: BoundingBox§score: SCOREmodel-specific score for this detection, higher implies more confidence.
label: usizelabel index for this detect
Trait Implementations§
Source§impl<SCORE: Clone + PrimInt + AsPrimitive<f32>> Clone for DetectBoxQuantized<SCORE>
impl<SCORE: Clone + PrimInt + AsPrimitive<f32>> Clone for DetectBoxQuantized<SCORE>
Source§fn clone(&self) -> DetectBoxQuantized<SCORE>
fn clone(&self) -> DetectBoxQuantized<SCORE>
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<SCORE: Debug + PrimInt + AsPrimitive<f32>> Debug for DetectBoxQuantized<SCORE>
impl<SCORE: Debug + PrimInt + AsPrimitive<f32>> Debug for DetectBoxQuantized<SCORE>
Source§impl<SCORE: PartialEq + PrimInt + AsPrimitive<f32>> PartialEq for DetectBoxQuantized<SCORE>
impl<SCORE: PartialEq + PrimInt + AsPrimitive<f32>> PartialEq for DetectBoxQuantized<SCORE>
impl<SCORE: Copy + PrimInt + AsPrimitive<f32>> Copy for DetectBoxQuantized<SCORE>
impl<SCORE: PrimInt + AsPrimitive<f32>> StructuralPartialEq for DetectBoxQuantized<SCORE>
Auto Trait Implementations§
impl<SCORE> Freeze for DetectBoxQuantized<SCORE>where
SCORE: Freeze,
impl<SCORE> RefUnwindSafe for DetectBoxQuantized<SCORE>where
SCORE: RefUnwindSafe,
impl<SCORE> Send for DetectBoxQuantized<SCORE>where
SCORE: Send,
impl<SCORE> Sync for DetectBoxQuantized<SCORE>where
SCORE: Sync,
impl<SCORE> Unpin for DetectBoxQuantized<SCORE>where
SCORE: Unpin,
impl<SCORE> UnwindSafe for DetectBoxQuantized<SCORE>where
SCORE: UnwindSafe,
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> 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