[−][src]Struct nixterm::terminfo::TermInfoBuf
The owning, mutable version of TermInfo
Fields
names: Vec<String>
Methods
impl TermInfoBuf
[src]
pub fn from_terminfo(ti: &TermInfo) -> TermInfoBuf
[src]
pub fn new() -> TermInfoBuf
[src]
pub fn has_ext(&self) -> bool
[src]
pub fn boolean(&self, field: BooleanField) -> bool
[src]
pub fn number(&self, field: NumericField) -> Option<u32>
[src]
pub fn string(&self, field: StringField) -> Option<&str>
[src]
pub fn exec<'a>(&'a self, field: StringField) -> Option<Executor<'a>>
[src]
Execute a string
pub fn ext_index<T: AsRef<str>>(&self, s: T) -> Option<usize>
[src]
pub fn ext_boolean<T: AsRef<str>>(&self, field: T) -> bool
[src]
pub fn ext_number<T: AsRef<str>>(&self, field: T) -> Option<u32>
[src]
pub fn ext_string<T: AsRef<str>>(&self, field: T) -> Option<&str>
[src]
pub fn set_boolean(&mut self, field: BooleanField, v: bool) -> Result<()>
[src]
pub fn set_number(&mut self, field: NumericField, v: u32) -> Result<()>
[src]
pub fn set_string<T: AsRef<str>>(
&mut self,
field: StringField,
v: T
) -> Result<()>
[src]
&mut self,
field: StringField,
v: T
) -> Result<()>
pub fn set_ext_boolean(&mut self, field: String, v: bool) -> Result<()>
[src]
pub fn set_ext_number(&mut self, field: String, v: u32) -> Result<()>
[src]
pub fn set_ext_string(&mut self, field: String, v: String) -> Result<()>
[src]
Trait Implementations
impl<'a> From<TermInfo<'a>> for TermInfoBuf
[src]
fn from(src: TermInfo<'a>) -> TermInfoBuf
[src]
impl<'a> From<&'a TermInfo<'a>> for TermInfoBuf
[src]
fn from(src: &'a TermInfo<'a>) -> TermInfoBuf
[src]
impl Clone for TermInfoBuf
[src]
fn clone(&self) -> TermInfoBuf
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for TermInfoBuf
[src]
Auto Trait Implementations
impl Send for TermInfoBuf
impl Unpin for TermInfoBuf
impl Sync for TermInfoBuf
impl UnwindSafe for TermInfoBuf
impl RefUnwindSafe for TermInfoBuf
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,