pub struct DeleteCharacterIntent {
pub forward: bool,
}Expand description
Deletes the character before or after the caret location, based on whether
forward is true.
Typically a text field will not respond to this intent if it has no active
caret (TextSelection::is_valid is false for the current selection).
Fields§
§forward: boolImplementations§
Source§impl DeleteCharacterIntent
impl DeleteCharacterIntent
Sourcepub const fn new(forward: bool) -> DeleteCharacterIntent
pub const fn new(forward: bool) -> DeleteCharacterIntent
Creates a DeleteCharacterIntent.
Trait Implementations§
Source§impl Clone for DeleteCharacterIntent
impl Clone for DeleteCharacterIntent
impl Copy for DeleteCharacterIntent
Source§impl Debug for DeleteCharacterIntent
impl Debug for DeleteCharacterIntent
impl Eq for DeleteCharacterIntent
Source§impl Intent for DeleteCharacterIntent
impl Intent for DeleteCharacterIntent
Source§fn as_any(&self) -> &dyn Any
fn as_any(&self) -> &dyn Any
The value behind the erased intent, for the downcast an
Action does to recover its
own intent type.Source§fn intent_type(&self) -> TypeId
fn intent_type(&self) -> TypeId
Dart’s
intent.runtimeType: the key an Actions map is looked up with.Source§fn debug_fill_properties(&self, properties: &mut DiagnosticPropertiesBuilder)
fn debug_fill_properties(&self, properties: &mut DiagnosticPropertiesBuilder)
Dart’s
Intent.debugFillProperties, from Diagnosticable: an intent adds its own
fields.Source§fn to_string_short(&self) -> String
fn to_string_short(&self) -> String
Dart’s
Intent.toStringShort: the type and the identity.Source§fn diagnostics_node(&self, name: Option<String>) -> DiagnosticableNode
fn diagnostics_node(&self, name: Option<String>) -> DiagnosticableNode
Dart’s
Intent.toDiagnosticsNode(name:), from Diagnosticable.Source§fn diagnostic_string(&self) -> String
fn diagnostic_string(&self) -> String
Dart’s
Diagnosticable.toString, which a property holding an intent prints.Source§impl PartialEq for DeleteCharacterIntent
impl PartialEq for DeleteCharacterIntent
impl StructuralPartialEq for DeleteCharacterIntent
Auto Trait Implementations§
impl Forget for DeleteCharacterIntent
impl Freeze for DeleteCharacterIntent
impl Move for DeleteCharacterIntent
impl RefUnwindSafe for DeleteCharacterIntent
impl Send for DeleteCharacterIntent
impl Sync for DeleteCharacterIntent
impl Unpin for DeleteCharacterIntent
impl UnsafeUnpin for DeleteCharacterIntent
impl UnwindSafe for DeleteCharacterIntent
Blanket Implementations§
Source§impl<T> ActionIntent for Twhere
T: Intent,
impl<T> ActionIntent for Twhere
T: Intent,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.