/// Determines whether `base` is a prefix of `self`.
///
+ /// Only considers whole path components to match.
+ ///
/// # Examples
///
/// ```
/// let path = Path::new("/etc/passwd");
///
/// assert!(path.starts_with("/etc"));
+ ///
+ /// assert!(!path.starts_with("/e"));
/// ```
#[stable(feature = "rust1", since = "1.0.0")]
pub fn starts_with<P: AsRef<Path>>(&self, base: P) -> bool {
/// Determines whether `child` is a suffix of `self`.
///
+ /// Only considers whole path components to match.
+ ///
/// # Examples
///
/// ```