| Age | Commit message (Collapse) | Author | Lines |
|
Override ToOwned::clone_into for Path and OsStr
The only non-overridden one remaining is the CStr impl, which cannot
be optimized as doing so would break CString's second invariant.
Follow-up to 7ec27ae (PR #41009).
r? @alexcrichton
|
|
The only non-overridden one remaining is the CStr impl, which cannot
be optimized as doing so would break CString's second invariant.
|
|
* Closed an unclosed paren
* seperator -> separator
* deperator -> separator
|
|
Part of #29368.
* Added explanation for why the struct exists
* Added link to where it is created
* Added example
|
|
Part of #29368.
* Added a new summary paragraph about std::path's parsing facilities
* Slightly exanded `Component`'s docs
* removed the now redundant section on component types from the module docs
* moved the section on path normalization during parsing to the docs on
`Path::components`
* Clarified difference between `Prefix` and `PrefixComponent` in their
respecive summary sentences
|
|
Part of #29368.
|
|
Part of #29368.
* added missing links
* updated method summaries to use 3rd person style
* added missing periods in `Component`'s variant summaries
* use standard iterator boilerplate in `Components`' and `Iter`'s docs
* added example to `Iter::as_path`, adapted from `Components::as_path`'s
example
* consolidated examples for `Path::file_name`
* some other small fixes
|
|
The name of the variable used in the example is `path`, not `os_str`.
|
|
Rollup of 23 pull requests
- Successful merges: #40387, #40433, #40452, #40456, #40457, #40458, #40463, #40466, #40467, #40495, #40496, #40497, #40499, #40500, #40503, #40505, #40512, #40514, #40517, #40520, #40536, #40545, #40586
- Failed merges:
|
|
r=GuillaumeGomez
Remove function invokation parens from documentation links.
This was never established as a convention we should follow in the 'More
API Documentation Conventions' RFC:
https://github.com/rust-lang/rfcs/blob/master/text/1574-more-api-documentation-conventions.md
|
|
|
|
This was never established as a convention we should follow in the 'More
API Documentation Conventions' RFC:
https://github.com/rust-lang/rfcs/blob/master/text/1574-more-api-documentation-conventions.md
|
|
|
|
|
|
Added Default impl to PathBuf
|
|
Fix is_absolute on Redox
Due to not using prefixes on Redox, yet, it must be added as an exception to Path::is_absolute.
|
|
|
|
Add missing links and examples for path modules and structs
r? @frewsxcv
|
|
|
|
|
|
|
|
|
|
Clearer description of std::path::MAIN_SEPARATOR.
|
|
|
|
|
|
|
|
Change `Into<Vec<u8>> for String` and `Into<OsString> for PathBuf` to From
Fixes #37561. First contribution, happy with any and all feedback!
|
|
|
|
Fix a few links in the docs
r? @steveklabnik
|
|
|
|
|
|
std: Stabilize and deprecate APIs for 1.13
This commit is intended to be backported to the 1.13 branch, and works with the
following APIs:
Stabilized
* `i32::checked_abs`
* `i32::wrapping_abs`
* `i32::overflowing_abs`
* `RefCell::try_borrow`
* `RefCell::try_borrow_mut`
Deprecated
* `BinaryHeap::push_pop`
* `BinaryHeap::replace`
* `SipHash13`
* `SipHash24`
* `SipHasher` - use `DefaultHasher` instead in the `std::collections::hash_map`
module
Closes #28147
Closes #34767
Closes #35057
Closes #35070
|
|
This commit is intended to be backported to the 1.13 branch, and works with the
following APIs:
Stabilized
* `i32::checked_abs`
* `i32::wrapping_abs`
* `i32::overflowing_abs`
* `RefCell::try_borrow`
* `RefCell::try_borrow_mut`
* `DefaultHasher`
* `DefaultHasher::new`
* `DefaultHasher::default`
Deprecated
* `BinaryHeap::push_pop`
* `BinaryHeap::replace`
* `SipHash13`
* `SipHash24`
* `SipHasher` - use `DefaultHasher` instead in the `std::collections::hash_map`
module
Closes #28147
Closes #34767
Closes #35057
Closes #35070
|
|
|
|
doc: we got coercion going on here, so no need to be this explicit
|
|
|
|
|
|
Improve Path and PathBuf docs
r? @steveklabnik
|
|
|
|
|
|
|
|
|
|
This trait can be used to avoid the overhead of a fuse wrapper when an iterator
is already well-behaved.
Conforming to: RFC 1581
Closes: #35602
|
|
|
|
Issue #34076: Removing reference to removed path.prefix() function
In the documentation for `std::path::Path`, there is a [reference](https://doc.rust-lang.org/std/path/struct.Path.html#method.is_absolute) to the `path.prefix()` function which has since been removed. The offending reference is now also removed.
First pull request, feedback welcome!
r? @steveklabnik
|
|
|
|
There isn't anything deprecated being used in this function.
|
|
Expand `std::path::Component` documentation.
Indicate how it gets created and add an example.
|
|
Indicate how it gets created and add an example.
|
|
Indicate how the `std::path::Components` struct is created.
None
|