about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorHuon Wilson <dbau.pp+github@gmail.com>2014-01-26 13:25:02 +1100
committerHuon Wilson <dbau.pp+github@gmail.com>2014-01-26 13:33:05 +1100
commit0aef487a5c2797b34e64ddcfa3974264fbc9830b (patch)
tree9633f80b156d69af708248edd37a0dc7d66b701e /src/libstd
parent6516b303b5f35e81350cccdf6629766e2b0a027e (diff)
downloadrust-0aef487a5c2797b34e64ddcfa3974264fbc9830b.tar.gz
rust-0aef487a5c2797b34e64ddcfa3974264fbc9830b.zip
std,extra: Make some types public and other private.
These are either returned from public functions, and really should
appear in the documentation, but don't since they're private, or are
implementation details that are currently public.
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/comm/mod.rs2
-rw-r--r--src/libstd/comm/select.rs1
-rw-r--r--src/libstd/io/mod.rs2
-rw-r--r--src/libstd/str.rs2
4 files changed, 4 insertions, 3 deletions
diff --git a/src/libstd/comm/mod.rs b/src/libstd/comm/mod.rs
index 26d67daf7c1..ebbd51524cb 100644
--- a/src/libstd/comm/mod.rs
+++ b/src/libstd/comm/mod.rs
@@ -243,7 +243,7 @@ use vec::OwnedVector;
 use spsc = sync::spsc_queue;
 use mpsc = sync::mpsc_queue;
 
-pub use self::select::Select;
+pub use self::select::{Select, Handle};
 
 macro_rules! test (
     { fn $name:ident() $b:block $($a:attr)*} => (
diff --git a/src/libstd/comm/select.rs b/src/libstd/comm/select.rs
index 6a10ac56a4e..96c345f3689 100644
--- a/src/libstd/comm/select.rs
+++ b/src/libstd/comm/select.rs
@@ -89,6 +89,7 @@ pub struct Select {
 /// This handle is used to keep the port in the set as well as interact with the
 /// underlying port.
 pub struct Handle<'port, T> {
+    /// A unique ID for this Handle.
     id: uint,
     priv selector: &'port Select,
     priv port: &'port mut Port<T>,
diff --git a/src/libstd/io/mod.rs b/src/libstd/io/mod.rs
index 30827983360..3b1c45d7527 100644
--- a/src/libstd/io/mod.rs
+++ b/src/libstd/io/mod.rs
@@ -1268,7 +1268,7 @@ pub trait Acceptor<T> {
 /// The Some contains another Option representing whether the connection attempt was succesful.
 /// A successful connection will be wrapped in Some.
 /// A failed connection is represented as a None and raises a condition.
-struct IncomingConnections<'a, A> {
+pub struct IncomingConnections<'a, A> {
     priv inc: &'a mut A,
 }
 
diff --git a/src/libstd/str.rs b/src/libstd/str.rs
index 22c9ae606d3..c7626105f51 100644
--- a/src/libstd/str.rs
+++ b/src/libstd/str.rs
@@ -620,7 +620,7 @@ enum NormalizationForm {
 /// External iterator for a string's normalization's characters.
 /// Use with the `std::iter` module.
 #[deriving(Clone)]
-struct Normalizations<'a> {
+pub struct Normalizations<'a> {
     priv kind: NormalizationForm,
     priv iter: Chars<'a>,
     priv buffer: ~[(char, u8)],