File tree Expand file tree Collapse file tree 2 files changed +19
-19
lines changed Expand file tree Collapse file tree 2 files changed +19
-19
lines changed Original file line number Diff line number Diff line change @@ -20,9 +20,9 @@ use std::str;
20
20
// Common data structures
21
21
#[ deriving( Clone ) ]
22
22
pub struct Doc < ' a > {
23
- data : & ' a [ u8 ] ,
24
- start : uint ,
25
- end : uint ,
23
+ pub data : & ' a [ u8 ] ,
24
+ pub start : uint ,
25
+ pub end : uint ,
26
26
}
27
27
28
28
impl < ' doc > Doc < ' doc > {
@@ -40,8 +40,8 @@ impl<'doc> Doc<'doc> {
40
40
}
41
41
42
42
pub struct TaggedDoc < ' a > {
43
- priv tag: uint ,
44
- doc : Doc < ' a > ,
43
+ tag : uint ,
44
+ pub doc : Doc < ' a > ,
45
45
}
46
46
47
47
pub enum EbmlEncoderTag {
@@ -117,8 +117,8 @@ pub mod reader {
117
117
)
118
118
119
119
pub struct Res {
120
- val : uint ,
121
- next : uint
120
+ pub val : uint ,
121
+ pub next : uint
122
122
}
123
123
124
124
#[ inline( never) ]
@@ -291,8 +291,8 @@ pub mod reader {
291
291
pub fn doc_as_i64 ( d : Doc ) -> i64 { doc_as_u64 ( d) as i64 }
292
292
293
293
pub struct Decoder < ' a > {
294
- priv parent : Doc < ' a > ,
295
- priv pos: uint ,
294
+ parent : Doc < ' a > ,
295
+ pos : uint ,
296
296
}
297
297
298
298
pub fn Decoder < ' a > ( d : Doc < ' a > ) -> Decoder < ' a > {
@@ -635,8 +635,8 @@ pub mod writer {
635
635
636
636
// ebml writing
637
637
pub struct Encoder < ' a , W > {
638
- writer : & ' a mut W ,
639
- priv size_positions : ~[ uint ] ,
638
+ pub writer : & ' a mut W ,
639
+ size_positions : ~[ uint ] ,
640
640
}
641
641
642
642
fn write_sized_vuint < W : Writer > ( w : & mut W , n : uint , size : uint ) -> EncodeResult {
Original file line number Diff line number Diff line change @@ -298,7 +298,7 @@ fn spaces(n: uint) -> ~str {
298
298
299
299
/// A structure for implementing serialization to JSON.
300
300
pub struct Encoder < ' a > {
301
- priv wr: & ' a mut io:: Writer ,
301
+ wr : & ' a mut io:: Writer ,
302
302
}
303
303
304
304
impl < ' a > Encoder < ' a > {
@@ -504,8 +504,8 @@ impl<'a> ::Encoder<io::IoError> for Encoder<'a> {
504
504
/// Another encoder for JSON, but prints out human-readable JSON instead of
505
505
/// compact data
506
506
pub struct PrettyEncoder < ' a > {
507
- priv wr: & ' a mut io:: Writer ,
508
- priv indent : uint ,
507
+ wr : & ' a mut io:: Writer ,
508
+ indent : uint ,
509
509
}
510
510
511
511
impl < ' a > PrettyEncoder < ' a > {
@@ -899,10 +899,10 @@ impl Json {
899
899
}
900
900
901
901
pub struct Parser < T > {
902
- priv rdr: T ,
903
- priv ch: Option < char > ,
904
- priv line : uint ,
905
- priv col: uint ,
902
+ rdr : T ,
903
+ ch : Option < char > ,
904
+ line : uint ,
905
+ col : uint ,
906
906
}
907
907
908
908
impl < T : Iterator < char > > Parser < T > {
@@ -1298,7 +1298,7 @@ pub fn from_str(s: &str) -> DecodeResult<Json> {
1298
1298
1299
1299
/// A structure to decode JSON to values in rust.
1300
1300
pub struct Decoder {
1301
- priv stack : ~[ Json ] ,
1301
+ stack : ~[ Json ] ,
1302
1302
}
1303
1303
1304
1304
impl Decoder {
You can’t perform that action at this time.
0 commit comments