PointCloudSoa

Struct PointCloudSoa 

Source
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>

Source

pub fn new(default: PointCloud) -> Self

Source

pub fn len(&self) -> usize

Source

pub fn is_empty(&self) -> bool

Source

pub fn push(&mut self, value: PointCloud)

Source

pub fn pop(&mut self) -> Option<PointCloud>

Source

pub fn set(&mut self, index: usize, value: PointCloud)

Source

pub fn get(&self, index: usize) -> PointCloud

Source

pub fn apply<F>(&mut self, f: F)

Source

pub fn iter(&self) -> PointCloudIterator<'_, N>

Source

pub fn tov(&self) -> &[CuTime]

Source

pub fn tov_mut(&mut self) -> &mut [CuTime]

Source

pub fn tov_range(&self, range: Range<usize>) -> &[CuTime]

Source

pub fn tov_range_mut(&mut self, range: Range<usize>) -> &mut [CuTime]

Source

pub fn x(&self) -> &[Distance]

Source

pub fn x_mut(&mut self) -> &mut [Distance]

Source

pub fn x_range(&self, range: Range<usize>) -> &[Distance]

Source

pub fn x_range_mut(&mut self, range: Range<usize>) -> &mut [Distance]

Source

pub fn y(&self) -> &[Distance]

Source

pub fn y_mut(&mut self) -> &mut [Distance]

Source

pub fn y_range(&self, range: Range<usize>) -> &[Distance]

Source

pub fn y_range_mut(&mut self, range: Range<usize>) -> &mut [Distance]

Source

pub fn z(&self) -> &[Distance]

Source

pub fn z_mut(&mut self) -> &mut [Distance]

Source

pub fn z_range(&self, range: Range<usize>) -> &[Distance]

Source

pub fn z_range_mut(&mut self, range: Range<usize>) -> &mut [Distance]

Source

pub fn i(&self) -> &[Reflectivity]

Source

pub fn i_mut(&mut self) -> &mut [Reflectivity]

Source

pub fn i_range(&self, range: Range<usize>) -> &[Reflectivity]

Source

pub fn i_range_mut(&mut self, range: Range<usize>) -> &mut [Reflectivity]

Source

pub fn return_order(&self) -> &[u8]

Source

pub fn return_order_mut(&mut self) -> &mut [u8]

Source

pub fn return_order_range(&self, range: Range<usize>) -> &[u8]

Source

pub fn return_order_range_mut(&mut self, range: Range<usize>) -> &mut [u8]

Source§

impl<const N: usize> PointCloudSoa<N>

Source

pub fn sort(&mut self)

Sort in place the point cloud so it can be ready for merge sorts for example

Source

pub fn swap(&mut self, a: usize, b: usize)

swap the elements at index a and b

Trait Implementations§

Source§

impl<const N: usize> Clone for PointCloudSoa<N>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<const N: usize> Debug for PointCloudSoa<N>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<const N: usize> Decode<()> for PointCloudSoa<N>

Source§

fn decode<D: Decoder<Context = ()>>( decoder: &mut D, ) -> Result<Self, DecodeError>

Attempt to decode this type with the given Decode.
Source§

impl<const N: usize> Default for PointCloudSoa<N>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de, const N: usize> Deserialize<'de> for PointCloudSoa<N>

Source§

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>

Source§

fn encode<E: Encoder>(&self, encoder: &mut E) -> Result<(), EncodeError>

Encode a given type.
Source§

impl<const N: usize> Serialize for PointCloudSoa<N>

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> Serialize for T
where T: Serialize + ?Sized,

Source§

fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<(), Error>

Source§

fn do_erased_serialize( &self, serializer: &mut dyn Serializer, ) -> Result<(), ErrorImpl>

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> CuMsgPayload for T

Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,