pub struct Text { /* private fields */ }Implementations§
Source§impl Text
impl Text
Sourcepub fn mark(self, name: &'static str) -> Self
pub fn mark(self, name: &'static str) -> Self
Name a part of an explicit static plan; not a DOM id or data key.
pub fn backend_options<T: 'static>(self, value: T) -> Self
Source§impl Text
impl Text
Sourcepub fn class(self, value: impl Into<Vary<String>>) -> Self
pub fn class(self, value: impl Into<Vary<String>>) -> Self
Set the complete whitespace-separated class list (last call wins).
Sourcepub fn class_fn(self, read: impl FnMut() -> String + 'static) -> Self
pub fn class_fn(self, read: impl FnMut() -> String + 'static) -> Self
Compute one property directly in its pure Binding.
pub fn style_fn(self, read: impl FnMut() -> Style + 'static) -> Self
pub fn style(self, value: impl Into<Vary<Style>>) -> Self
Sourcepub fn name(self, value: impl Into<Vary<String>>) -> Self
pub fn name(self, value: impl Into<Vary<String>>) -> Self
Accessible name. Plain inline/paragraph text uses content; decorative images have no accessible name. A named generic View becomes an accessible group without changing its layout box.
pub fn focus(self, mode: impl Into<Vary<FocusMode>>) -> Self
Sourcepub fn semantics(self, value: impl Into<Vary<Option<Box<Semantics>>>>) -> Self
pub fn semantics(self, value: impl Into<Vary<Option<Box<Semantics>>>>) -> Self
Finite composite-widget state and document-scoped relations.
pub fn on(self, kind: EventKind, handler: impl FnMut(Event) + 'static) -> Self
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Text
impl !Send for Text
impl !Sync for Text
impl !UnwindSafe for Text
impl Freeze for Text
impl Unpin for Text
impl UnsafeUnpin for Text
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