@@ -1397,7 +1397,8 @@ impl<'a> From<&'a Path> for Box<Path> {
1397
1397
1398
1398
#[ stable( feature = "path_buf_from_box" , since = "1.18.0" ) ]
1399
1399
impl From < Box < Path > > for PathBuf {
1400
- /// Converts a `Box<Path>` into a `PathBuf`.
1400
+ /// Converts a `Box<Path>` into a `PathBuf`
1401
+ ///
1401
1402
/// This conversion does not allocate memory
1402
1403
fn from ( boxed : Box < Path > ) -> PathBuf {
1403
1404
boxed. into_path_buf ( )
@@ -1406,7 +1407,8 @@ impl From<Box<Path>> for PathBuf {
1406
1407
1407
1408
#[ stable( feature = "box_from_path_buf" , since = "1.20.0" ) ]
1408
1409
impl From < PathBuf > for Box < Path > {
1409
- /// Converts a `PathBuf` into a `Box<Path>`.
1410
+ /// Converts a `PathBuf` into a `Box<Path>`
1411
+ ///
1410
1412
/// This conversion does not allocate memory
1411
1413
fn from ( p : PathBuf ) -> Box < Path > {
1412
1414
p. into_boxed_path ( )
@@ -1430,7 +1432,8 @@ impl<'a, T: ?Sized + AsRef<OsStr>> From<&'a T> for PathBuf {
1430
1432
1431
1433
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1432
1434
impl From < OsString > for PathBuf {
1433
- /// Converts a `OsString` into a `PathBuf`.
1435
+ /// Converts a `OsString` into a `PathBuf`
1436
+ ///
1434
1437
/// This conversion does not allocate memory
1435
1438
fn from ( s : OsString ) -> PathBuf {
1436
1439
PathBuf { inner : s }
@@ -1439,7 +1442,8 @@ impl From<OsString> for PathBuf {
1439
1442
1440
1443
#[ stable( feature = "from_path_buf_for_os_string" , since = "1.14.0" ) ]
1441
1444
impl From < PathBuf > for OsString {
1442
- /// Converts a `PathBuf` into a `OsString`.
1445
+ /// Converts a `PathBuf` into a `OsString`
1446
+ ///
1443
1447
/// This conversion does not allocate memory
1444
1448
fn from ( path_buf : PathBuf ) -> OsString {
1445
1449
path_buf. inner
@@ -1448,7 +1452,8 @@ impl From<PathBuf> for OsString {
1448
1452
1449
1453
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1450
1454
impl From < String > for PathBuf {
1451
- /// Converts a `String` into a `PathBuf`.
1455
+ /// Converts a `String` into a `PathBuf`
1456
+ ///
1452
1457
/// This conversion does not allocate memory
1453
1458
fn from ( s : String ) -> PathBuf {
1454
1459
PathBuf :: from ( OsString :: from ( s) )
@@ -1546,9 +1551,11 @@ impl<'a> From<Cow<'a, Path>> for PathBuf {
1546
1551
1547
1552
#[ stable( feature = "shared_from_slice2" , since = "1.24.0" ) ]
1548
1553
impl From < PathBuf > for Arc < Path > {
1549
- /// Converts a `PathBuf` into a `Arc<Path>`.
1550
- /// This conversion happens in place.
1551
- /// This conversion does not allocate memory.
1554
+ /// Converts a `PathBuf` into a `Arc<Path>`
1555
+ ///
1556
+ /// This conversion happens in place
1557
+ ///
1558
+ /// This conversion does not allocate memory
1552
1559
#[ inline]
1553
1560
fn from ( s : PathBuf ) -> Arc < Path > {
1554
1561
let arc: Arc < OsStr > = Arc :: from ( s. into_os_string ( ) ) ;
@@ -1558,9 +1565,12 @@ impl From<PathBuf> for Arc<Path> {
1558
1565
1559
1566
#[ stable( feature = "shared_from_slice2" , since = "1.24.0" ) ]
1560
1567
impl < ' a > From < & ' a Path > for Arc < Path > {
1561
- /// Converts a `PathBuf` into a `Arc<Path>`.
1562
- /// This conversion happens in place.
1563
- /// This conversion does not allocate memory.
1568
+ /// Converts a `PathBuf` into a `Arc<Path>`
1569
+ ///
1570
+ /// This conversion happens in place
1571
+ ///
1572
+ /// This conversion does not allocate memory
1573
+ ///
1564
1574
#[ inline]
1565
1575
fn from ( s : & Path ) -> Arc < Path > {
1566
1576
let arc: Arc < OsStr > = Arc :: from ( s. as_os_str ( ) ) ;
@@ -1570,9 +1580,11 @@ impl<'a> From<&'a Path> for Arc<Path> {
1570
1580
1571
1581
#[ stable( feature = "shared_from_slice2" , since = "1.24.0" ) ]
1572
1582
impl From < PathBuf > for Rc < Path > {
1573
- /// Converts a `PathBuf` into a `Rc<Path>`.
1574
- /// This conversion happens in place.
1575
- /// This conversion does not allocate memory.
1583
+ /// Converts a `PathBuf` into a `Rc<Path>`
1584
+ ///
1585
+ /// This conversion happens in place
1586
+ ///
1587
+ /// This conversion does not allocate memory
1576
1588
#[ inline]
1577
1589
fn from ( s : PathBuf ) -> Rc < Path > {
1578
1590
let rc: Rc < OsStr > = Rc :: from ( s. into_os_string ( ) ) ;
0 commit comments