#[repr(C, align(8))]
pub struct RadarData { /* private fields */ }

Implementations§

Deletes the current detections. It doesn’t change the resolution nor the allocated memory.

Adds a new detection.

Set a new resolution for the RadarData. Allocates / Deallocates space in memory if needed.

@warning This is expensive, not to be called each tick!

Returns the number of current detections.

Trait Implementations§

Synthesized destructor.

A type-level representation of the type’s C++ namespace and type name. Read more
Allocates heap space for this type in C++ and return a pointer to that space, but do not initialize that space (i.e. do not yet call a constructor). Read more
Frees a C++ allocation which has not yet had a constructor called. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.