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 Freeze for TermInfo
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
Source§impl<T> SizedTypeProperties for T
impl<T> SizedTypeProperties for T
Source§#[doc(hidden)] const IS_ZST: bool = _
#[doc(hidden)] const IS_ZST: bool = _
🔬This is a nightly-only experimental API. (
sized_type_properties
)Source§#[doc(hidden)] const LAYOUT: Layout = _
#[doc(hidden)] const LAYOUT: Layout = _
🔬This is a nightly-only experimental API. (
sized_type_properties
)Source§#[doc(hidden)] const MAX_SLICE_LEN: usize = _
#[doc(hidden)] const MAX_SLICE_LEN: usize = _
🔬This is a nightly-only experimental API. (
sized_type_properties
)The largest safe length for a
[Self]
. Read more