pure fn ne(&self, other: &Self) -> bool;
}
-#[deriving_eq]
+#[deriving(Eq)]
pub enum Ordering { Less, Equal, Greater }
/// Trait for types that form a total order
pub enum FileFlag { Append, Create, Truncate, NoFlag, }
// What type of writer are we?
-#[deriving_eq]
+#[deriving(Eq)]
pub enum WriterType { Screen, File }
// FIXME (#2004): Seekable really should be orthogonal.
pub mod spawn;
/// A handle to a scheduler
-#[deriving_eq]
+#[deriving(Eq)]
pub enum Scheduler {
SchedulerHandle(sched_id)
}
/// A handle to a task
-#[deriving_eq]
+#[deriving(Eq)]
pub enum Task {
TaskHandle(task_id)
}
}
/// Scheduler modes
-#[deriving_eq]
+#[deriving(Eq)]
pub enum SchedMode {
/// Run task on the default scheduler
DefaultScheduler,
use prelude::*;
use str;
- #[deriving_eq]
+ #[deriving(Eq)]
pub enum Signedness { Signed, Unsigned, }
- #[deriving_eq]
+ #[deriving(Eq)]
pub enum Caseness { CaseUpper, CaseLower, }
- #[deriving_eq]
+ #[deriving(Eq)]
pub enum Ty {
TyBool,
TyStr,
TyPoly,
}
- #[deriving_eq]
+ #[deriving(Eq)]
pub enum Flag {
FlagLeftJustify,
FlagLeftZeroPad,
FlagAlternate,
}
- #[deriving_eq]
+ #[deriving(Eq)]
pub enum Count {
CountIs(uint),
CountIsParam(uint),
CountImplied,
}
- #[deriving_eq]
+ #[deriving(Eq)]
struct Parsed<T> {
val: T,
next: uint
}
// A formatted conversion from an expression to a string
- #[deriving_eq]
+ #[deriving(Eq)]
pub struct Conv {
param: Option<uint>,
flags: ~[Flag],
}
// A fragment of the output sequence
- #[deriving_eq]
+ #[deriving(Eq)]
pub enum Piece { PieceString(~str), PieceConv(Conv), }
pub type ErrorFn = @fn(&str) -> !;
};
}
- #[deriving_eq]
+ #[deriving(Eq)]
pub enum PadMode { PadSigned, PadUnsigned, PadNozero, PadFloat }
pub fn pad(cv: Conv, s: ~str, mode: PadMode) -> ~str {