pub struct TextInputFormatterRef(pub Rc<dyn TextInputFormatter>);Expand description
A shared TextInputFormatter.
Tuple Fields§
§0: Rc<dyn TextInputFormatter>Implementations§
Source§impl TextInputFormatterRef
impl TextInputFormatterRef
Sourcepub fn with_function(
format_function: TextInputFormatFunction,
) -> TextInputFormatterRef
pub fn with_function( format_function: TextInputFormatFunction, ) -> TextInputFormatterRef
A shorthand to creating a custom TextInputFormatter which formats
incoming text input changes with the given function.
Trait Implementations§
Source§impl Clone for TextInputFormatterRef
impl Clone for TextInputFormatterRef
Source§impl TextInputFormatter for TextInputFormatterRef
impl TextInputFormatter for TextInputFormatterRef
Source§fn format_edit_update(
&self,
old_value: &TextEditingValue,
new_value: &TextEditingValue,
) -> TextEditingValue
fn format_edit_update( &self, old_value: &TextEditingValue, new_value: &TextEditingValue, ) -> TextEditingValue
Called when text is being typed or cut/copy/pasted in the
EditableText.Auto Trait Implementations§
impl !RefUnwindSafe for TextInputFormatterRef
impl !Send for TextInputFormatterRef
impl !Sync for TextInputFormatterRef
impl !UnwindSafe for TextInputFormatterRef
impl Freeze for TextInputFormatterRef
impl Unpin for TextInputFormatterRef
impl UnsafeUnpin for TextInputFormatterRef
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