pub struct PointCloudSoa<const N: usize> {
pub len: usize,
pub tov: [CuTime; N],
pub x: [Distance; N],
pub y: [Distance; N],
pub z: [Distance; N],
pub i: [Reflectivity; N],
pub return_order: [u8; N],
}Fields§
§len: usize§tov: [CuTime; N]§x: [Distance; N]§y: [Distance; N]§z: [Distance; N]§i: [Reflectivity; N]§return_order: [u8; N]Implementations§
Source§impl<const N: usize> PointCloudSoa<N>
impl<const N: usize> PointCloudSoa<N>
pub fn new(default: PointCloud) -> Self
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn push(&mut self, value: PointCloud)
pub fn pop(&mut self) -> Option<PointCloud>
pub fn set(&mut self, index: usize, value: PointCloud)
pub fn get(&self, index: usize) -> PointCloud
pub fn apply<F>(&mut self, f: F)
pub fn iter(&self) -> PointCloudIterator<'_, N> ⓘ
pub fn tov(&self) -> &[CuTime] ⓘ
pub fn tov_mut(&mut self) -> &mut [CuTime] ⓘ
pub fn tov_range(&self, range: Range<usize>) -> &[CuTime] ⓘ
pub fn tov_range_mut(&mut self, range: Range<usize>) -> &mut [CuTime] ⓘ
pub fn x(&self) -> &[Distance]
pub fn x_mut(&mut self) -> &mut [Distance]
pub fn x_range(&self, range: Range<usize>) -> &[Distance]
pub fn x_range_mut(&mut self, range: Range<usize>) -> &mut [Distance]
pub fn y(&self) -> &[Distance]
pub fn y_mut(&mut self) -> &mut [Distance]
pub fn y_range(&self, range: Range<usize>) -> &[Distance]
pub fn y_range_mut(&mut self, range: Range<usize>) -> &mut [Distance]
pub fn z(&self) -> &[Distance]
pub fn z_mut(&mut self) -> &mut [Distance]
pub fn z_range(&self, range: Range<usize>) -> &[Distance]
pub fn z_range_mut(&mut self, range: Range<usize>) -> &mut [Distance]
pub fn i(&self) -> &[Reflectivity]
pub fn i_mut(&mut self) -> &mut [Reflectivity]
pub fn i_range(&self, range: Range<usize>) -> &[Reflectivity]
pub fn i_range_mut(&mut self, range: Range<usize>) -> &mut [Reflectivity]
pub fn return_order(&self) -> &[u8] ⓘ
pub fn return_order_mut(&mut self) -> &mut [u8] ⓘ
pub fn return_order_range(&self, range: Range<usize>) -> &[u8] ⓘ
pub fn return_order_range_mut(&mut self, range: Range<usize>) -> &mut [u8] ⓘ
Trait Implementations§
Source§impl<const N: usize> Clone for PointCloudSoa<N>
impl<const N: usize> Clone for PointCloudSoa<N>
Source§impl<const N: usize> Debug for PointCloudSoa<N>
impl<const N: usize> Debug for PointCloudSoa<N>
Source§impl<const N: usize> Default for PointCloudSoa<N>
impl<const N: usize> Default for PointCloudSoa<N>
Source§impl<'de, const N: usize> Deserialize<'de> for PointCloudSoa<N>where
CuTime: Deserialize<'de> + Default,
Distance: Deserialize<'de> + Default,
Reflectivity: Deserialize<'de> + Default,
u8: Deserialize<'de> + Default,
impl<'de, const N: usize> Deserialize<'de> for PointCloudSoa<N>where
CuTime: Deserialize<'de> + Default,
Distance: Deserialize<'de> + Default,
Reflectivity: Deserialize<'de> + Default,
u8: Deserialize<'de> + Default,
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<const N: usize> Encode for PointCloudSoa<N>
impl<const N: usize> Encode for PointCloudSoa<N>
Auto Trait Implementations§
impl<const N: usize> Freeze for PointCloudSoa<N>
impl<const N: usize> !RefUnwindSafe for PointCloudSoa<N>
impl<const N: usize> Send for PointCloudSoa<N>
impl<const N: usize> Sync for PointCloudSoa<N>
impl<const N: usize> Unpin for PointCloudSoa<N>
impl<const N: usize> !UnwindSafe for PointCloudSoa<N>
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