We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5410363 commit 2fbbaacCopy full SHA for 2fbbaac
src/types/range.rs
@@ -137,14 +137,19 @@ impl Normalizable for Timespec {
137
}
138
139
140
+/// The possible sides of a bound
141
#[deriving(PartialEq, Eq)]
-enum BoundSide {
142
+pub enum BoundSide {
143
+ /// An upper bound
144
Upper,
145
+ /// A lower bound
146
Lower
147
148
149
+/// A trait implemented by phantom types indicating the type of the bound
150
#[doc(hidden)]
-trait BoundSided {
151
+pub trait BoundSided {
152
+ /// Returns the bound side this type corresponds to
153
// param is a hack to get around lack of hints for self type
154
fn side(_: Option<Self>) -> BoundSide;
155
0 commit comments