File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
library/alloc/src/collections Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -631,6 +631,8 @@ impl<T> LinkedList<T> {
631
631
/// Returns `true` if the `LinkedList` contains an element equal to the
632
632
/// given value.
633
633
///
634
+ /// This operation should compute in *O*(*n*) time.
635
+ ///
634
636
/// # Examples
635
637
///
636
638
/// ```
@@ -655,6 +657,8 @@ impl<T> LinkedList<T> {
655
657
656
658
/// Provides a reference to the front element, or `None` if the list is
657
659
/// empty.
660
+ ///
661
+ /// This operation should compute in *O*(*1*) time.
658
662
///
659
663
/// # Examples
660
664
///
@@ -675,6 +679,8 @@ impl<T> LinkedList<T> {
675
679
676
680
/// Provides a mutable reference to the front element, or `None` if the list
677
681
/// is empty.
682
+ ///
683
+ /// This operation should compute in *O*(*1*) time.
678
684
///
679
685
/// # Examples
680
686
///
@@ -701,6 +707,8 @@ impl<T> LinkedList<T> {
701
707
702
708
/// Provides a reference to the back element, or `None` if the list is
703
709
/// empty.
710
+ ///
711
+ /// This operation should compute in *O*(*1*) time.
704
712
///
705
713
/// # Examples
706
714
///
@@ -721,6 +729,8 @@ impl<T> LinkedList<T> {
721
729
722
730
/// Provides a mutable reference to the back element, or `None` if the list
723
731
/// is empty.
732
+ ///
733
+ /// This operation should compute in *O*(*1*) time.
724
734
///
725
735
/// # Examples
726
736
///
You can’t perform that action at this time.
0 commit comments