pub trait Layout<T: StyleLayerType>:
Send
+ Sized
+ 'static {
type Bucket: Bucket;
// Required methods
fn new(cx: &mut LayoutCx<'_, T>) -> Result<Self, Error>;
fn build(
self,
cx: &mut BuildCx<'_, T>,
) -> Result<Option<Self::Bucket>, Error>;
// Provided method
fn needs_resources(_group: &[Arc<EvaluatedLayer<T>>]) -> bool { ... }
}Expand description
Required Associated Types§
Required Methods§
Provided Methods§
Sourcefn needs_resources(_group: &[Arc<EvaluatedLayer<T>>]) -> bool
fn needs_resources(_group: &[Arc<EvaluatedLayer<T>>]) -> bool
Whether the layout of group may ask for glyphs or images. The
engine makes such a layout before it resolves them, and builds it
once they are, after every other.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".