diff options
| author | bors <bors@rust-lang.org> | 2015-02-10 04:07:03 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-02-10 04:07:03 +0000 |
| commit | 0bfe358e0fe3b35f0434e81e7c53ea844e95cc13 (patch) | |
| tree | 091fc970b94cf86a68fd62febef1c5648f5b0d9d /src/libstd/sys/common | |
| parent | 134e00be7751a9fdc820981962e4fd7ea97bfff6 (diff) | |
| parent | 6bfbad937bdf578e35777d079f8dcfab49758041 (diff) | |
| download | rust-0bfe358e0fe3b35f0434e81e7c53ea844e95cc13.tar.gz rust-0bfe358e0fe3b35f0434e81e7c53ea844e95cc13.zip | |
Auto merge of #21936 - alexcrichton:fsv2, r=aturon
This commit is an implementation of [RFC 739][rfc] which adds a new `std::fs` module to the standard library. This module provides much of the same functionality as `std::old_io::fs` but it has many tweaked APIs as well as uses the new `std::path` module. [rfc]: https://github.com/rust-lang/rfcs/pull/739
Diffstat (limited to 'src/libstd/sys/common')
| -rw-r--r-- | src/libstd/sys/common/mod.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libstd/sys/common/mod.rs b/src/libstd/sys/common/mod.rs index 6f6b4c58717..80fa5f64597 100644 --- a/src/libstd/sys/common/mod.rs +++ b/src/libstd/sys/common/mod.rs @@ -95,20 +95,30 @@ pub fn keep_going<F>(data: &[u8], mut f: F) -> i64 where } /// A trait for viewing representations from std types +#[doc(hidden)] pub trait AsInner<Inner: ?Sized> { fn as_inner(&self) -> &Inner; } +/// A trait for viewing representations from std types +#[doc(hidden)] +pub trait AsInnerMut<Inner: ?Sized> { + fn as_inner_mut(&mut self) -> &mut Inner; +} + /// A trait for extracting representations from std types +#[doc(hidden)] pub trait IntoInner<Inner> { fn into_inner(self) -> Inner; } /// A trait for creating std types from internal representations +#[doc(hidden)] pub trait FromInner<Inner> { fn from_inner(inner: Inner) -> Self; } +#[doc(hidden)] pub trait ProcessConfig<K: BytesContainer, V: BytesContainer> { fn program(&self) -> &CString; fn args(&self) -> &[CString]; |
