File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -534,6 +534,21 @@ macro_rules! impl_sequence_alloc_for_primitive_type {
534534 }
535535
536536 impl SequenceAlloc for $rust_type {
537+ /// Initializes a sequence with a given size.
538+ ///
539+ /// # Safety
540+ ///
541+ /// This function is unsafe because it calls an unsafe function `$init_func`.
542+ /// The caller must ensure that `$init_func` is safe to call with the provided arguments.
543+ ///
544+ /// # Arguments
545+ ///
546+ /// * `seq` - A mutable reference to the sequence to be initialized.
547+ /// * `size` - The size of the sequence to be initialized.
548+ ///
549+ /// # Returns
550+ ///
551+ /// `true` if the sequence was successfully initialized, `false` otherwise.
537552 fn sequence_init( seq: & mut Sequence <Self >, size: usize ) -> bool {
538553 // SAFETY: There are no special preconditions to the sequence_init function.
539554 unsafe {
You can’t perform that action at this time.
0 commit comments