File tree 1 file changed +0
-26
lines changed 1 file changed +0
-26
lines changed Original file line number Diff line number Diff line change @@ -812,32 +812,6 @@ impl<T> Vec<T> {
812
812
self . truncate ( 0 )
813
813
}
814
814
815
- /// Returns the number of elements in the vector.
816
- ///
817
- /// # Examples
818
- ///
819
- /// ```
820
- /// let a = vec![1, 2, 3];
821
- /// assert_eq!(a.len(), 3);
822
- /// ```
823
- #[ inline]
824
- #[ stable( feature = "rust1" , since = "1.0.0" ) ]
825
- pub fn len ( & self ) -> usize { self . len }
826
-
827
- /// Returns `true` if the vector contains no elements.
828
- ///
829
- /// # Examples
830
- ///
831
- /// ```
832
- /// let mut v = Vec::new();
833
- /// assert!(v.is_empty());
834
- ///
835
- /// v.push(1);
836
- /// assert!(!v.is_empty());
837
- /// ```
838
- #[ stable( feature = "rust1" , since = "1.0.0" ) ]
839
- pub fn is_empty ( & self ) -> bool { self . len ( ) == 0 }
840
-
841
815
/// Converts a `Vec<T>` to a `Vec<U>` where `T` and `U` have the same
842
816
/// size and in case they are not zero-sized the same minimal alignment.
843
817
///
You can’t perform that action at this time.
0 commit comments