From 6bfbad937bdf578e35777d079f8dcfab49758041 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Mon, 2 Feb 2015 21:39:14 -0800 Subject: std: Add a new `fs` module 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 --- src/libstd/sys/common/mod.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/libstd/sys/common') 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(data: &[u8], mut f: F) -> i64 where } /// A trait for viewing representations from std types +#[doc(hidden)] pub trait AsInner { fn as_inner(&self) -> &Inner; } +/// A trait for viewing representations from std types +#[doc(hidden)] +pub trait AsInnerMut { + fn as_inner_mut(&mut self) -> &mut Inner; +} + /// A trait for extracting representations from std types +#[doc(hidden)] pub trait IntoInner { fn into_inner(self) -> Inner; } /// A trait for creating std types from internal representations +#[doc(hidden)] pub trait FromInner { fn from_inner(inner: Inner) -> Self; } +#[doc(hidden)] pub trait ProcessConfig { fn program(&self) -> &CString; fn args(&self) -> &[CString]; -- cgit 1.4.1-3-g733a5