Skip to content

Commit 2fbbaac

Browse files
committed
Fix compilation
1 parent 5410363 commit 2fbbaac

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/types/range.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,14 +137,19 @@ impl Normalizable for Timespec {
137137
}
138138
}
139139

140+
/// The possible sides of a bound
140141
#[deriving(PartialEq, Eq)]
141-
enum BoundSide {
142+
pub enum BoundSide {
143+
/// An upper bound
142144
Upper,
145+
/// A lower bound
143146
Lower
144147
}
145148

149+
/// A trait implemented by phantom types indicating the type of the bound
146150
#[doc(hidden)]
147-
trait BoundSided {
151+
pub trait BoundSided {
152+
/// Returns the bound side this type corresponds to
148153
// param is a hack to get around lack of hints for self type
149154
fn side(_: Option<Self>) -> BoundSide;
150155
}

0 commit comments

Comments
 (0)