Struct DetectionResults
pub struct DetectionResults { pub scene_changes: Vec<usize>, pub frame_count: usize, pub speed: f64 }
Results from a scene change detection pass.
Fields
scene_changes: Vec<usize>The 0-indexed frame numbers where scene changes were detected.
frame_count: usizeThe total number of frames read.
speed: f64Average speed (FPS)
Trait Implementations
impl Clone for DetectionResults
fn clone(&self) -> DetectionResults
impl Debug for DetectionResults
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Auto Trait Implementations
impl Freeze for DetectionResults
impl RefUnwindSafe for DetectionResults
impl Send for DetectionResults
impl Sync for DetectionResults
impl Unpin for DetectionResults
impl UnsafeUnpin for DetectionResults
impl UnwindSafe for DetectionResults
Blanket Implementations
impl<T> Any for DetectionResults
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for DetectionResults
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for DetectionResults
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for DetectionResults
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for DetectionResults
fn from(t: T) -> TReturns the argument unchanged.
impl<T> IntoEither for DetectionResults
impl<T> Pointable for DetectionResults
const ALIGN: usize = _;type Init = T;unsafe fn init(init: <T as Pointable>::Init) -> usizeunsafe fn deref<'a>(ptr: usize) -> &'a Tunsafe fn deref_mut<'a>(ptr: usize) -> &'a mut Tunsafe fn drop(ptr: usize)
impl<T> ToOwned for DetectionResults
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for DetectionResults
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for DetectionResults
where
U: Into<T>,
type Error = Infallible;fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for DetectionResults
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>