language changes: priv tuple-like fields are now default as well.

This commit is contained in:
Kang Seonghoon 2014-04-04 18:09:22 +09:00
parent 87c45837c8
commit f7c03b536f
1 changed files with 3 additions and 3 deletions

View File

@ -741,7 +741,7 @@ mod internals {
/// and `bbb` is a non-zero `Weekday` (mapping `Mon` to 7) of the last day in the past year /// and `bbb` is a non-zero `Weekday` (mapping `Mon` to 7) of the last day in the past year
/// (simplifies the day of week calculation from the 1-based ordinal). /// (simplifies the day of week calculation from the 1-based ordinal).
#[deriving(Eq, TotalEq)] #[deriving(Eq, TotalEq)]
pub struct YearFlags(u8); pub struct YearFlags(pub u8);
pub static A: YearFlags = YearFlags(0o15); pub static AG: YearFlags = YearFlags(0o05); pub static A: YearFlags = YearFlags(0o15); pub static AG: YearFlags = YearFlags(0o05);
pub static B: YearFlags = YearFlags(0o14); pub static BA: YearFlags = YearFlags(0o04); pub static B: YearFlags = YearFlags(0o14); pub static BA: YearFlags = YearFlags(0o04);
@ -981,7 +981,7 @@ mod internals {
/// The whole bits except for the least 3 bits are referred as `Ol` (ordinal and leap flag), /// The whole bits except for the least 3 bits are referred as `Ol` (ordinal and leap flag),
/// which is an index to the `OL_TO_MDL` lookup table. /// which is an index to the `OL_TO_MDL` lookup table.
#[deriving(Eq, Ord)] #[deriving(Eq, Ord)]
pub struct Of(uint); pub struct Of(pub uint);
impl Of { impl Of {
#[inline] #[inline]
@ -1082,7 +1082,7 @@ mod internals {
/// (month, day of month and leap flag), /// (month, day of month and leap flag),
/// which is an index to the `MDL_TO_OL` lookup table. /// which is an index to the `MDL_TO_OL` lookup table.
#[deriving(Eq, Ord)] #[deriving(Eq, Ord)]
pub struct Mdf(uint); pub struct Mdf(pub uint);
impl Mdf { impl Mdf {
#[inline] #[inline]