We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ee9a7f commit 4fbae08Copy full SHA for 4fbae08
rosidl_runtime_rs/src/sequence.rs
@@ -559,6 +559,16 @@ macro_rules! impl_sequence_alloc_for_primitive_type {
559
ret
560
}
561
562
+ /// Finalizes a sequence, freeing any associated resources.
563
+ ///
564
+ /// # Safety
565
566
+ /// This function is unsafe because it calls an unsafe function `$fini_func`.
567
+ /// The caller must ensure that `$fini_func` is safe to call with the provided arguments.
568
569
+ /// # Arguments
570
571
+ /// * `seq` - A mutable reference to the sequence to be finalized.
572
fn sequence_fini(seq: &mut Sequence<Self>) {
573
// SAFETY: There are no special preconditions to the sequence_fini function.
574
unsafe { $fini_func(seq as *mut _) }
0 commit comments