pub struct ColorRGBA {
pub r: f32,
pub g: f32,
pub b: f32,
pub a: f32,
}Fields§
§r: f32§g: f32§b: f32§a: f32Trait Implementations§
Source§impl CdrFixed for ColorRGBA
impl CdrFixed for ColorRGBA
Source§const CDR_SIZE: usize = 16
const CDR_SIZE: usize = 16
The wire size of this type in CDR (not counting any encapsulation
header). See the trait-level docs for when this value is reliable.
Source§fn read_cdr(cursor: &mut CdrCursor<'_>) -> Result<Self, CdrError>
fn read_cdr(cursor: &mut CdrCursor<'_>) -> Result<Self, CdrError>
Read this type from the cursor (cursor is already past the CDR header).
Source§impl SchemaType for ColorRGBA
impl SchemaType for ColorRGBA
Source§const SCHEMA_NAME: &'static str = "std_msgs/msg/ColorRGBA"
const SCHEMA_NAME: &'static str = "std_msgs/msg/ColorRGBA"
The ROS2 schema name (e.g., “sensor_msgs/msg/Image”)
Source§fn schema_name() -> &'static str
fn schema_name() -> &'static str
Returns the schema name for this type.
impl Copy for ColorRGBA
impl StructuralPartialEq for ColorRGBA
Auto Trait Implementations§
impl Freeze for ColorRGBA
impl RefUnwindSafe for ColorRGBA
impl Send for ColorRGBA
impl Sync for ColorRGBA
impl Unpin for ColorRGBA
impl UnsafeUnpin for ColorRGBA
impl UnwindSafe for ColorRGBA
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