Trait Converting

Source
pub trait Converting {
    // Required methods
    fn to_array(
        &self,
        relative_position: Position,
        listing: &dyn SurfaceListing,
    ) -> Vec<SurfaceContext>;
    fn to_workspace_state(&self) -> WorkspaceState;
}
Expand description

Extension trait for Frame adding more displaying functionality.

Required Methods§

Source

fn to_array( &self, relative_position: Position, listing: &dyn SurfaceListing, ) -> Vec<SurfaceContext>

Converts frame three to list of SurfaceContext suitable for drawing by renderer.

Source

fn to_workspace_state(&self) -> WorkspaceState

Converts frame tree to structure describing state of workspaces.

Implementors§