pub struct XtVersion(/* private fields */);Expand description
Represents a terminal name and version. The name XtVersion is because this value is produced by querying the terminal using the XTVERSION escape sequence, which was defined by xterm.
Implementations§
Source§impl XtVersion
impl XtVersion
Sourcepub fn name_and_version(&self) -> Option<(&str, &str)>
pub fn name_and_version(&self) -> Option<(&str, &str)>
Split the version string into a name component and a version
component. Currently it recognizes Name(Version) and
Name Version forms. If a form is not recognized, returns None.
Sourcepub fn full_version(&self) -> &str
pub fn full_version(&self) -> &str
Return the full underlying version string
Trait Implementations§
impl Eq for XtVersion
impl StructuralPartialEq for XtVersion
Auto Trait Implementations§
impl Freeze for XtVersion
impl RefUnwindSafe for XtVersion
impl Send for XtVersion
impl Sync for XtVersion
impl Unpin for XtVersion
impl UnwindSafe for XtVersion
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