Skip to main content

assert_message_format

Function assert_message_format 

Source
pub fn assert_message_format<M: RosMessage>()
Expand description

Assert at compile time that M is encoded in the format the linked backend speaks.

Zero-sized and inlined away; the whole effect is the const {} block, which is evaluated when this function is monomorphised for M. See the module docs for the error a mismatch produces and for what it does not cover.