pub(crate) struct TermInfo {
pub(crate) names: Vec<String>,
pub(crate) bools: HashMap<String, bool>,
pub(crate) numbers: HashMap<String, u32>,
pub(crate) strings: HashMap<String, Vec<u8>>,
}
🔬This is a nightly-only experimental API. (
test
)Expand description
A parsed terminfo database entry.
Fields§
§names: Vec<String>
🔬This is a nightly-only experimental API. (
test
)Names for the terminal
bools: HashMap<String, bool>
🔬This is a nightly-only experimental API. (
test
)Map of capability name to boolean value
numbers: HashMap<String, u32>
🔬This is a nightly-only experimental API. (
test
)Map of capability name to numeric value
strings: HashMap<String, Vec<u8>>
🔬This is a nightly-only experimental API. (
test
)Map of capability name to raw (unexpanded) string
Implementations§
source§impl TermInfo
impl TermInfo
sourcepub(crate) fn from_env() -> Result<TermInfo, Error>
🔬This is a nightly-only experimental API. (test
)
pub(crate) fn from_env() -> Result<TermInfo, Error>
test
)Creates a TermInfo based on current environment.
sourcepub(crate) fn from_name(name: &str) -> Result<TermInfo, Error>
🔬This is a nightly-only experimental API. (test
)
pub(crate) fn from_name(name: &str) -> Result<TermInfo, Error>
test
)Creates a TermInfo for the named terminal.
sourcepub(crate) fn from_path<P: AsRef<Path>>(path: P) -> Result<TermInfo, Error>
🔬This is a nightly-only experimental API. (test
)
pub(crate) fn from_path<P: AsRef<Path>>(path: P) -> Result<TermInfo, Error>
test
)Parse the given TermInfo.
fn _from_path(path: &Path) -> Result<TermInfo, Error>
🔬This is a nightly-only experimental API. (
test
)Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for TermInfo
impl Send for TermInfo
impl Sync for TermInfo
impl Unpin for TermInfo
impl UnwindSafe for TermInfo
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more