Enum vte4::EraseBinding
source · #[non_exhaustive]pub enum EraseBinding {
Auto,
AsciiBackspace,
AsciiDelete,
DeleteSequence,
Tty,
}
Expand description
An enumerated type which can be used to indicate which string the terminal should send to an application when the user presses the Delete or Backspace keys.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Auto
For backspace, attempt to determine the right value from the terminal’s IO settings. For delete, use the control sequence.
AsciiBackspace
Send an ASCII backspace character (0x08).
AsciiDelete
Send an ASCII delete character (0x7F).
DeleteSequence
Send the “@@7” control sequence.
Tty
Send terminal’s “erase” setting.
Trait Implementations§
source§impl Clone for EraseBinding
impl Clone for EraseBinding
source§fn clone(&self) -> EraseBinding
fn clone(&self) -> EraseBinding
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for EraseBinding
impl Debug for EraseBinding
source§impl From<EraseBinding> for Value
impl From<EraseBinding> for Value
source§fn from(v: EraseBinding) -> Self
fn from(v: EraseBinding) -> Self
Converts to this type from the input type.
source§impl<'a> FromValue<'a> for EraseBinding
impl<'a> FromValue<'a> for EraseBinding
§type Checker = GenericValueTypeChecker<EraseBinding>
type Checker = GenericValueTypeChecker<EraseBinding>
Value type checker.
source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a
Value
. Read moresource§impl HasParamSpec for EraseBinding
impl HasParamSpec for EraseBinding
type ParamSpec = ParamSpecEnum
§type SetValue = EraseBinding
type SetValue = EraseBinding
Preferred value to be used as setter for the associated ParamSpec.
type BuilderFn = fn(_: &str, _: EraseBinding) -> ParamSpecEnumBuilder<'_, EraseBinding>
fn param_spec_builder() -> Self::BuilderFn
source§impl Hash for EraseBinding
impl Hash for EraseBinding
source§impl Ord for EraseBinding
impl Ord for EraseBinding
source§fn cmp(&self, other: &EraseBinding) -> Ordering
fn cmp(&self, other: &EraseBinding) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for EraseBinding
impl PartialEq for EraseBinding
source§fn eq(&self, other: &EraseBinding) -> bool
fn eq(&self, other: &EraseBinding) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for EraseBinding
impl PartialOrd for EraseBinding
source§fn partial_cmp(&self, other: &EraseBinding) -> Option<Ordering>
fn partial_cmp(&self, other: &EraseBinding) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl StaticType for EraseBinding
impl StaticType for EraseBinding
source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.source§impl ToValue for EraseBinding
impl ToValue for EraseBinding
source§impl ValueType for EraseBinding
impl ValueType for EraseBinding
§type Type = EraseBinding
type Type = EraseBinding
Type to get the
Type
from. Read moreimpl Copy for EraseBinding
impl Eq for EraseBinding
impl StructuralPartialEq for EraseBinding
Auto Trait Implementations§
impl Freeze for EraseBinding
impl RefUnwindSafe for EraseBinding
impl Send for EraseBinding
impl Sync for EraseBinding
impl Unpin for EraseBinding
impl UnwindSafe for EraseBinding
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> IntoClosureReturnValue for T
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
source§impl<T> PropertyGet for Twhere
T: HasParamSpec,
impl<T> PropertyGet for Twhere
T: HasParamSpec,
source§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
source§fn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.