Struct r2r::shape_msgs::msg::SolidPrimitive
source · pub struct SolidPrimitive {
pub type_: u8,
pub dimensions: Vec<f64>,
pub polygon: Polygon,
}
Fields§
§type_: u8
§dimensions: Vec<f64>
§polygon: Polygon
Implementations§
source§impl SolidPrimitive
impl SolidPrimitive
pub const BOX: _bindgen_ty_165 = shape_msgs__msg__SolidPrimitive__BOX
pub const BOX_X: _bindgen_ty_170 = shape_msgs__msg__SolidPrimitive__BOX_X
pub const BOX_Y: _bindgen_ty_171 = shape_msgs__msg__SolidPrimitive__BOX_Y
pub const BOX_Z: _bindgen_ty_172 = shape_msgs__msg__SolidPrimitive__BOX_Z
pub const CONE: _bindgen_ty_168 = shape_msgs__msg__SolidPrimitive__CONE
pub const CONE_HEIGHT: _bindgen_ty_176 = shape_msgs__msg__SolidPrimitive__CONE_HEIGHT
pub const CONE_RADIUS: _bindgen_ty_177 = shape_msgs__msg__SolidPrimitive__CONE_RADIUS
pub const CYLINDER: _bindgen_ty_167 = shape_msgs__msg__SolidPrimitive__CYLINDER
pub const CYLINDER_HEIGHT: _bindgen_ty_174 = shape_msgs__msg__SolidPrimitive__CYLINDER_HEIGHT
pub const CYLINDER_RADIUS: _bindgen_ty_175 = shape_msgs__msg__SolidPrimitive__CYLINDER_RADIUS
pub const PRISM: _bindgen_ty_169 = shape_msgs__msg__SolidPrimitive__PRISM
pub const PRISM_HEIGHT: _bindgen_ty_178 = shape_msgs__msg__SolidPrimitive__PRISM_HEIGHT
pub const SPHERE: _bindgen_ty_166 = shape_msgs__msg__SolidPrimitive__SPHERE
pub const SPHERE_RADIUS: _bindgen_ty_173 = shape_msgs__msg__SolidPrimitive__SPHERE_RADIUS
Trait Implementations§
source§impl Clone for SolidPrimitive
impl Clone for SolidPrimitive
source§fn clone(&self) -> SolidPrimitive
fn clone(&self) -> SolidPrimitive
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SolidPrimitive
impl Debug for SolidPrimitive
source§impl Default for SolidPrimitive
impl Default for SolidPrimitive
source§impl<'de> Deserialize<'de> for SolidPrimitivewhere
SolidPrimitive: Default,
impl<'de> Deserialize<'de> for SolidPrimitivewhere
SolidPrimitive: 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 PartialEq for SolidPrimitive
impl PartialEq for SolidPrimitive
source§impl Serialize for SolidPrimitive
impl Serialize for SolidPrimitive
source§impl WrappedTypesupport for SolidPrimitive
impl WrappedTypesupport for SolidPrimitive
type CStruct = shape_msgs__msg__SolidPrimitive
fn get_ts() -> &'static rosidl_message_type_support_t
fn create_msg() -> *mut shape_msgs__msg__SolidPrimitive
fn destroy_msg(msg: *mut shape_msgs__msg__SolidPrimitive)
fn from_native(msg: &Self::CStruct) -> SolidPrimitive
fn copy_to_native(&self, msg: &mut Self::CStruct)
source§fn to_serialized_bytes(&self) -> Result<Vec<u8>>
fn to_serialized_bytes(&self) -> Result<Vec<u8>>
This serializes the message using ROS2 methods.
source§fn from_serialized_bytes(data: &[u8]) -> Result<Self>
fn from_serialized_bytes(data: &[u8]) -> Result<Self>
This deserializes the message using ROS2 methods.
impl StructuralPartialEq for SolidPrimitive
Auto Trait Implementations§
impl Freeze for SolidPrimitive
impl RefUnwindSafe for SolidPrimitive
impl Send for SolidPrimitive
impl Sync for SolidPrimitive
impl Unpin for SolidPrimitive
impl UnwindSafe for SolidPrimitive
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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