pub trait HostBoxes {
// Required method
fn host_box(&self, request: &HostBoxRequest) -> Option<HostBox>;
// Provided method
fn revision(&self, _token: u32) -> Option<u64> { ... }
}Expand description
Answers \hostbox{token} with a box the host lays out, such as a nested editor field.
Required Methods§
Sourcefn host_box(&self, request: &HostBoxRequest) -> Option<HostBox>
fn host_box(&self, request: &HostBoxRequest) -> Option<HostBox>
The box for one placement of request.token, None renders nothing and emits a warning.
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".