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 334333d commit c4d191cCopy full SHA for c4d191c
rosidl_runtime_rs/src/sequence.rs
@@ -92,6 +92,15 @@ 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.
100
101
+ /// # Returns
102
103
+ /// A new `Sequence` instance that is a deep copy of the original sequence.
104
fn clone(&self) -> Self {
105
let mut seq = Self::default();
106
match T::sequence_copy(self, &mut seq) {
0 commit comments