pub enum DetectError {
InvalidMapShape {
expected_rank: usize,
got: Vec<usize>,
},
InvalidChannelCount {
expected: usize,
got: usize,
},
InvalidThreshold {
threshold: f32,
},
InvalidIouThreshold {
iou_threshold: f32,
},
InvalidMinArea {
min_area: usize,
},
InvalidMaxDetections {
max_detections: usize,
},
Rgb8DimensionsOverflow {
width: usize,
height: usize,
},
InvalidRgb8BufferSize {
expected: usize,
got: usize,
},
Tensor(TensorError),
Video(VideoError),
}Variants§
InvalidMapShape
InvalidChannelCount
InvalidThreshold
InvalidIouThreshold
InvalidMinArea
InvalidMaxDetections
Rgb8DimensionsOverflow
InvalidRgb8BufferSize
Tensor(TensorError)
Video(VideoError)
Trait Implementations§
Source§impl Clone for DetectError
impl Clone for DetectError
Source§fn clone(&self) -> DetectError
fn clone(&self) -> DetectError
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 DetectError
impl Debug for DetectError
Source§impl Display for DetectError
impl Display for DetectError
Source§impl Error for DetectError
impl Error for DetectError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<TensorError> for DetectError
impl From<TensorError> for DetectError
Source§fn from(source: TensorError) -> Self
fn from(source: TensorError) -> Self
Converts to this type from the input type.
Source§impl From<VideoError> for DetectError
impl From<VideoError> for DetectError
Source§fn from(source: VideoError) -> Self
fn from(source: VideoError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DetectError
impl PartialEq for DetectError
impl StructuralPartialEq for DetectError
Auto Trait Implementations§
impl Freeze for DetectError
impl RefUnwindSafe for DetectError
impl Send for DetectError
impl Sync for DetectError
impl Unpin for DetectError
impl UnsafeUnpin for DetectError
impl UnwindSafe for DetectError
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