Struct dioxus_core::VText
source · [−]pub struct VText<'src> {
pub id: Cell<Option<ElementId>>,
pub text: &'src str,
pub is_static: bool,
}
Expand description
A bump-allocated string slice and metadata.
Fields
id: Cell<Option<ElementId>>
The ElementId
of the VText.
text: &'src str
The text of the VText.
is_static: bool
An indiciation if this VText can be ignored during diffing Is usually only when there are no strings to be formatted (so the text is &’static str)
Auto Trait Implementations
impl<'src> !RefUnwindSafe for VText<'src>
impl<'src> Send for VText<'src>
impl<'src> !Sync for VText<'src>
impl<'src> Unpin for VText<'src>
impl<'src> UnwindSafe for VText<'src>
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