Skip to main content

PointCloudSoaStorage

Struct PointCloudSoaStorage 

Source
pub struct PointCloudSoaStorage<const N: 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§

§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> PointCloudSoaStorage<N>

Source

pub fn new(default: PointCloud) -> Self

Source

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

Source

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

Source

pub fn encode_len<E: Encoder>( &self, encoder: &mut E, len: usize, ) -> Result<(), EncodeError>

Source

pub fn decode_len<D: Decoder<Context = ()>>( decoder: &mut D, len: usize, ) -> Result<Self, DecodeError>

Source

pub fn serialize_len(&self, len: usize) -> PointCloudSoaStorageSerde<'_, N>

Source

pub fn from_wire( wire: PointCloudSoaStorageWire, len: usize, ) -> Result<Self, String>

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]

Trait Implementations§

Source§

impl<const N: usize> Clone for PointCloudSoaStorage<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 PointCloudSoaStorage<N>

Source§

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

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

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

Source§

fn default() -> Self

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

Auto Trait Implementations§

§

impl<const N: usize> Freeze for PointCloudSoaStorage<N>

§

impl<const N: usize> RefUnwindSafe for PointCloudSoaStorage<N>

§

impl<const N: usize> Send for PointCloudSoaStorage<N>

§

impl<const N: usize> Sync for PointCloudSoaStorage<N>

§

impl<const N: usize> Unpin for PointCloudSoaStorage<N>

§

impl<const N: usize> UnsafeUnpin for PointCloudSoaStorage<N>

§

impl<const N: usize> UnwindSafe for PointCloudSoaStorage<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> 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> GetTypeRegistration for T

Source§

impl<T> Reflect for T
where T: 'static,

Source§

impl<T> ReflectTypePath for T