use str;
use vec;
+ #[deriving_eq]
pub enum Signedness { Signed, Unsigned, }
+ #[deriving_eq]
pub enum Caseness { CaseUpper, CaseLower, }
+ #[deriving_eq]
pub enum Ty {
TyBool,
TyStr,
TyPoly,
}
+ #[deriving_eq]
pub enum Flag {
FlagLeftJustify,
FlagLeftZeroPad,
FlagAlternate,
}
+ #[deriving_eq]
pub enum Count {
CountIs(uint),
CountIsParam(uint),
CountImplied,
}
+ #[deriving_eq]
struct Parsed<T> {
val: T,
next: uint
}
// A formatted conversion from an expression to a string
+ #[deriving_eq]
pub struct Conv {
param: Option<uint>,
flags: ~[Flag],
}
// A fragment of the output sequence
+ #[deriving_eq]
pub enum Piece { PieceString(~str), PieceConv(Conv), }
pub type ErrorFn = @fn(&str) -> !;