Trait ros_pointcloud2::FromBytes
source · pub trait FromBytes: Zero + Sized + Copy + GetFieldDatatype {
// Required methods
fn from_be_bytes(bytes: &[u8]) -> Self;
fn from_le_bytes(bytes: &[u8]) -> Self;
fn bytes(_: &Self) -> Vec<u8>;
}Expand description
This trait is used to convert a byte slice to a primitive type. All PointField types are supported.
Required Methods§
fn from_be_bytes(bytes: &[u8]) -> Self
fn from_le_bytes(bytes: &[u8]) -> Self
fn bytes(_: &Self) -> Vec<u8>
Object Safety§
This trait is not object safe.