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 1baa9d2 commit 6972841Copy full SHA for 6972841
rosidl_runtime_rs/src/sequence.rs
@@ -92,6 +92,16 @@ pub struct SequenceIterator<T: SequenceAlloc> {
92
// ========================= impl for Sequence =========================
93
94
impl<T: SequenceAlloc> Clone for Sequence<T> {
95
+ /// Creates a deep copy of the sequence.
96
+ ///
97
+ /// # Panics
98
99
+ /// This function will panic if the cloning operation fails, as indicated by the
100
+ /// `sequence_copy` function returning `false`.
101
102
+ /// # Returns
103
104
+ /// A new `Sequence` instance that is a deep copy of the original sequence.
105
fn clone(&self) -> Self {
106
let mut seq = Self::default();
107
if T::sequence_copy(self, &mut seq) {
0 commit comments