pub trait LayoutFlexboxContainer: LayoutPartialTree {
type FlexboxContainerStyle<'a>: FlexboxContainerStyle
where Self: 'a;
type FlexboxItemStyle<'a>: FlexboxItemStyle
where Self: 'a;
// Required methods
fn get_flexbox_container_style(
&self,
node_id: NodeId,
) -> Self::FlexboxContainerStyle<'_>;
fn get_flexbox_child_style(
&self,
child_node_id: NodeId,
) -> Self::FlexboxItemStyle<'_>;
}
Expand description
Extends LayoutPartialTree
with getters for the styles required for Flexbox layout
Required Associated Types§
Sourcetype FlexboxContainerStyle<'a>: FlexboxContainerStyle
where
Self: 'a
type FlexboxContainerStyle<'a>: FlexboxContainerStyle where Self: 'a
The style type representing the Flexbox container’s styles
Sourcetype FlexboxItemStyle<'a>: FlexboxItemStyle
where
Self: 'a
type FlexboxItemStyle<'a>: FlexboxItemStyle where Self: 'a
The style type representing each Flexbox item’s styles
Required Methods§
Sourcefn get_flexbox_container_style(
&self,
node_id: NodeId,
) -> Self::FlexboxContainerStyle<'_>
fn get_flexbox_container_style( &self, node_id: NodeId, ) -> Self::FlexboxContainerStyle<'_>
Get the container’s styles
Sourcefn get_flexbox_child_style(
&self,
child_node_id: NodeId,
) -> Self::FlexboxItemStyle<'_>
fn get_flexbox_child_style( &self, child_node_id: NodeId, ) -> Self::FlexboxItemStyle<'_>
Get the child’s styles
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.