pub struct CuDepthInteger<T, S>(/* private fields */);Expand description
Compact unsigned-integer depth encoding with a compile-time physical scale.
Zero represents an invalid measurement. The sample width and resolution are
independent: for example, CuDepthInteger<u16, CuDepthDecimeter> covers
depths in 10-centimeter increments.
A 200-meter camera with 10-centimeter increments can use:
use cu_sensor_payloads::{
CuDepthInteger, CuDepthMap, CuDepthScaleRatio,
};
type LongRangeDepth =
CuDepthMap<Vec<u16>, CuDepthInteger<u16, CuDepthScaleRatio<1, 10>>>;Trait Implementations§
Source§impl<T: Clone, S: Clone> Clone for CuDepthInteger<T, S>
impl<T: Clone, S: Clone> Clone for CuDepthInteger<T, S>
Source§fn clone(&self) -> CuDepthInteger<T, S>
fn clone(&self) -> CuDepthInteger<T, S>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<T: Copy, S: Copy> Copy for CuDepthInteger<T, S>
Source§impl<T, S> CuDepthEncoding for CuDepthInteger<T, S>where
T: CuDepthIntegerSample,
S: CuDepthScale,
impl<T, S> CuDepthEncoding for CuDepthInteger<T, S>where
T: CuDepthIntegerSample,
S: CuDepthScale,
const DESCRIPTOR: CuDepthEncodingDescriptor
const TYPE_PATH: &'static str = "cu_sensor_payloads::CuDepthMapInteger"
const SHORT_TYPE_PATH: &'static str = "CuDepthMapInteger"
const TYPE_IDENT: &'static str = "CuDepthMapInteger"
type Sample = T
Auto Trait Implementations§
impl<T, S> Freeze for CuDepthInteger<T, S>
impl<T, S> RefUnwindSafe for CuDepthInteger<T, S>where
T: RefUnwindSafe,
S: RefUnwindSafe,
impl<T, S> Send for CuDepthInteger<T, S>
impl<T, S> Sync for CuDepthInteger<T, S>
impl<T, S> Unpin for CuDepthInteger<T, S>
impl<T, S> UnsafeUnpin for CuDepthInteger<T, S>
impl<T, S> UnwindSafe for CuDepthInteger<T, S>where
T: UnwindSafe,
S: 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,
impl<T> GetTypeRegistration for T
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