Skip to main content

LidarCuMsgPayload

Struct LidarCuMsgPayload 

Source
pub struct LidarCuMsgPayload(pub PointCloudSoa<MAX_POINTS>);

Tuple Fields§

§0: PointCloudSoa<MAX_POINTS>

Methods from Deref<Target = PointCloudSoa<MAX_POINTS>>§

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) -> &[CuDuration]

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

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

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 Clone for LidarCuMsgPayload

Source§

fn clone(&self) -> LidarCuMsgPayload

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 Debug for LidarCuMsgPayload

Source§

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

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

impl Decode<()> for LidarCuMsgPayload

Source§

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

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

impl Default for LidarCuMsgPayload

Source§

fn default() -> LidarCuMsgPayload

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

impl Deref for LidarCuMsgPayload

Source§

type Target = PointCloudSoa<MAX_POINTS>

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl DerefMut for LidarCuMsgPayload

Source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
Source§

impl<'de> Deserialize<'de> for LidarCuMsgPayload

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 Encode for LidarCuMsgPayload

Source§

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

Encode a given type.
Source§

impl Serialize for LidarCuMsgPayload

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§

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> CuPayloadSize for T
where T: CuMsgPayload,

Source§

fn raw_bytes(&self) -> usize

Total bytes represented by the payload in memory (stack + heap backing).
Source§

fn handle_bytes(&self) -> usize

Bytes that correspond to reusable/pooled handles (used for IO budgeting).
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<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
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>,

Source§

impl<T> GetTypeRegistration for T

Source§

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

Source§

impl<T> ReflectTypePath for T