pub trait View:
Debug
+ Clone
+ PartialEq
+ Default {
// Required methods
fn name_node(&mut self) -> &mut Name;
fn node_node(&mut self) -> &mut Node;
// Provided methods
fn name(self, name: impl Into<Cow<'static, str>>) -> Self { ... }
fn padding(self, padding: UiRect) -> Self { ... }
fn frame(self, width: Val, height: Val) -> Self { ... }
fn width(self, width: Val) -> Self { ... }
fn height(self, height: Val) -> Self { ... }
}Expand description
Provides common builder-style methods for UI configuration
Required Methods§
Provided Methods§
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.