pub struct Observation<'a> {
pub rgba: &'a [u8],
pub width: usize,
pub height: usize,
pub labels: Option<(&'a [u8], u8)>,
pub occlusions: &'a [Rect],
pub consistent: Option<&'a [u8]>,
pub confidence: f64,
pub uncertain: bool,
pub frame: u32,
}Fields§
§rgba: &'a [u8]§width: usize§height: usize§labels: Option<(&'a [u8], u8)>Atlas label plane; None when the region is rectangular and fully owned (fast path).
occlusions: &'a [Rect]§consistent: Option<&'a [u8]>Per-pixel world-consistency mask (1 = consistent); None treats every pixel as consistent.
confidence: f64§uncertain: bool§frame: u32Auto Trait Implementations§
impl<'a> Freeze for Observation<'a>
impl<'a> RefUnwindSafe for Observation<'a>
impl<'a> Send for Observation<'a>
impl<'a> Sync for Observation<'a>
impl<'a> Unpin for Observation<'a>
impl<'a> UnsafeUnpin for Observation<'a>
impl<'a> UnwindSafe for Observation<'a>
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> 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