parent
88b0b511be
commit
b7fe83d573
11 changed files with 93 additions and 12 deletions
|
|
@ -61,17 +61,20 @@ pub struct FormatSpec<'self> {
|
|||
|
||||
/// Enum describing where an argument for a format can be located.
|
||||
#[deriving(Eq)]
|
||||
#[allow(missing_doc)]
|
||||
pub enum Position<'self> {
|
||||
ArgumentNext, ArgumentIs(uint), ArgumentNamed(&'self str)
|
||||
}
|
||||
|
||||
/// Enum of alignments which are supported.
|
||||
#[deriving(Eq)]
|
||||
#[allow(missing_doc)]
|
||||
pub enum Alignment { AlignLeft, AlignRight, AlignUnknown }
|
||||
|
||||
/// Various flags which can be applied to format strings, the meaning of these
|
||||
/// flags is defined by the formatters themselves.
|
||||
#[deriving(Eq)]
|
||||
#[allow(missing_doc)]
|
||||
pub enum Flag {
|
||||
FlagSignPlus,
|
||||
FlagSignMinus,
|
||||
|
|
@ -82,6 +85,7 @@ pub enum Flag {
|
|||
/// A count is used for the precision and width parameters of an integer, and
|
||||
/// can reference either an argument or a literal integer.
|
||||
#[deriving(Eq)]
|
||||
#[allow(missing_doc)]
|
||||
pub enum Count {
|
||||
CountIs(uint),
|
||||
CountIsParam(uint),
|
||||
|
|
@ -126,6 +130,7 @@ pub struct PluralArm<'self> {
|
|||
///
|
||||
/// http://www.icu-project.org/apiref/icu4c/classicu_1_1PluralRules.html
|
||||
#[deriving(Eq, IterBytes)]
|
||||
#[allow(missing_doc)]
|
||||
pub enum PluralKeyword {
|
||||
Zero, One, Two, Few, Many
|
||||
}
|
||||
|
|
|
|||
|
|
@ -59,6 +59,7 @@ use util;
|
|||
*/
|
||||
pub type Key<T> = &'static KeyValue<T>;
|
||||
|
||||
#[allow(missing_doc)]
|
||||
pub enum KeyValue<T> { Key }
|
||||
|
||||
trait LocalData {}
|
||||
|
|
|
|||
|
|
@ -56,6 +56,7 @@ use clone::DeepClone;
|
|||
|
||||
/// The option type
|
||||
#[deriving(Clone, DeepClone, Eq)]
|
||||
#[allow(missing_doc)]
|
||||
pub enum Option<T> {
|
||||
None,
|
||||
Some(T),
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@ use to_bytes::{IterBytes, Cb};
|
|||
/// A SendStr is a string that can hold either a ~str or a &'static str.
|
||||
/// This can be useful as an optimization when an allocation is sometimes
|
||||
/// needed but the common case is statically known.
|
||||
#[allow(missing_doc)]
|
||||
pub enum SendStr {
|
||||
SendStrOwned(~str),
|
||||
SendStrStatic(&'static str)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue