UpdateTextExt

Trait UpdateTextExt 

Source
pub trait UpdateTextExt {
    // Required method
    fn update_text(&mut self, text: impl Into<String>) -> &mut Self;
}

Required Methods§

Source

fn update_text(&mut self, text: impl Into<String>) -> &mut Self

Update an entity’s Text

The Text component must already exist.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl UpdateTextExt for EntityCommands<'_>

Source§

fn update_text(&mut self, text: impl Into<String>) -> &mut EntityCommands<'_>

Implementors§