term: Switch field privacy as necessary
This commit is contained in:
parent
ee7016d95f
commit
abd7dd83a7
@ -20,7 +20,10 @@
|
||||
html_root_url = "http://static.rust-lang.org/doc/master")]
|
||||
|
||||
#![feature(macro_rules)]
|
||||
#![deny(missing_doc)]
|
||||
|
||||
// #![deny(missing_doc)] // NOTE: uncomment after a stage0 snap
|
||||
#![allow(missing_doc)] // NOTE: remove after a stage0 snap
|
||||
#![allow(visible_private_types)] // NOTE: remove after a stage0 snap
|
||||
|
||||
extern crate collections;
|
||||
|
||||
@ -111,9 +114,9 @@ fn cap_for_attr(attr: attr::Attr) -> &'static str {
|
||||
/// A Terminal that knows how many colors it supports, with a reference to its
|
||||
/// parsed TermInfo database record.
|
||||
pub struct Terminal<T> {
|
||||
priv num_colors: u16,
|
||||
priv out: T,
|
||||
priv ti: ~TermInfo
|
||||
num_colors: u16,
|
||||
out: T,
|
||||
ti: ~TermInfo
|
||||
}
|
||||
|
||||
impl<T: Writer> Terminal<T> {
|
||||
|
@ -15,13 +15,13 @@ use collections::HashMap;
|
||||
/// A parsed terminfo database entry.
|
||||
pub struct TermInfo {
|
||||
/// Names for the terminal
|
||||
priv names: Vec<~str> ,
|
||||
pub names: Vec<~str> ,
|
||||
/// Map of capability name to boolean value
|
||||
priv bools: HashMap<~str, bool>,
|
||||
pub bools: HashMap<~str, bool>,
|
||||
/// Map of capability name to numeric value
|
||||
numbers: HashMap<~str, u16>,
|
||||
pub numbers: HashMap<~str, u16>,
|
||||
/// Map of capability name to raw (unexpanded) string
|
||||
strings: HashMap<~str, Vec<u8> >
|
||||
pub strings: HashMap<~str, Vec<u8> >
|
||||
}
|
||||
|
||||
pub mod searcher;
|
||||
|
@ -48,9 +48,9 @@ pub enum Param {
|
||||
/// Container for static and dynamic variable arrays
|
||||
pub struct Variables {
|
||||
/// Static variables A-Z
|
||||
priv sta: [Param, ..26],
|
||||
sta: [Param, ..26],
|
||||
/// Dynamic variables a-z
|
||||
priv dyn: [Param, ..26]
|
||||
dyn: [Param, ..26]
|
||||
}
|
||||
|
||||
impl Variables {
|
||||
|
Loading…
x
Reference in New Issue
Block a user