pub trait WithCommon: Sized {
// Required method
fn common_mut(&mut self) -> &mut Common;
// Provided methods
fn key(self, key: impl Into<Key>) -> Self { ... }
fn style(self, style: Style) -> Self { ... }
fn block(self, block: impl Into<BlockProps>) -> Self { ... }
fn fallback(self, node: impl Into<Node>) -> Self { ... }
}Expand description
Extension-side common-props builder for any node (§4.1): node.with(|c| ...).
Required Methods§
Sourcefn common_mut(&mut self) -> &mut Common
fn common_mut(&mut self) -> &mut Common
Mutable access to the node’s common props.
Provided Methods§
Sourcefn block(self, block: impl Into<BlockProps>) -> Self
fn block(self, block: impl Into<BlockProps>) -> Self
Sets the surrounding block.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".