Indicate how the std::path::Components
struct is created.
This commit is contained in:
parent
35004b42bc
commit
f300fafccd
1 changed files with 4 additions and 0 deletions
|
@ -579,6 +579,8 @@ impl<'a> AsRef<OsStr> for Component<'a> {
|
||||||
/// See the module documentation for an in-depth explanation of components and
|
/// See the module documentation for an in-depth explanation of components and
|
||||||
/// their role in the API.
|
/// their role in the API.
|
||||||
///
|
///
|
||||||
|
/// This `struct` is created by the [`path::Path::components`] method.
|
||||||
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
|
@ -590,6 +592,8 @@ impl<'a> AsRef<OsStr> for Component<'a> {
|
||||||
/// println!("{:?}", component);
|
/// println!("{:?}", component);
|
||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
|
///
|
||||||
|
/// [`path::Path::components`]: struct.Path.html#method.components
|
||||||
#[derive(Clone)]
|
#[derive(Clone)]
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
pub struct Components<'a> {
|
pub struct Components<'a> {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue