pub struct Text { /* private fields */ }Implementations
Trait Implementations
sourceimpl Element for Text
impl Element for Text
fn set_id(&mut self, element_id: ElementId)
sourcefn render(&mut self, coordinator: &mut Coordinator<'_, '_>) -> Result<()>
fn render(&mut self, coordinator: &mut Coordinator<'_, '_>) -> Result<()>
Renders this element to the screen and returns the relative cursor position.
fn update_layout(&mut self, layout_accessor: &mut LayoutAccessor)
sourcefn is_input(&self) -> bool
fn is_input(&self) -> bool
Whether this element accepts user input and thus should be focusable.
sourcefn captures_enter(&self) -> bool
fn captures_enter(&self) -> bool
Whether this control should capture the Enter key, rather than advancing the form.
Auto Trait Implementations
impl RefUnwindSafe for Text
impl Send for Text
impl Sync for Text
impl Unpin for Text
impl UnwindSafe for Text
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more