pub struct Input { /* private fields */ }Expand description
文本框组件
Implementations§
Source§impl Input
impl Input
Sourcepub fn placeholder(self, placeholder: &str) -> Self
pub fn placeholder(self, placeholder: &str) -> Self
设置提示文本
Sourcepub fn cursor_style(self, style: Style) -> Self
pub fn cursor_style(self, style: Style) -> Self
设置光标样式
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Input
impl !RefUnwindSafe for Input
impl !Send for Input
impl !Sync for Input
impl Unpin for Input
impl UnsafeUnpin for Input
impl !UnwindSafe for Input
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