pub fn define_layout (direction: Direction, constraints: &[Constraint], location: Rect) -> Vec<Rect> {
    Layout::default()
        .direction(direction)
        .constraints(constraints)
        .split(location)
}
// Helper function to make creating layouts easier
Helper function to make creating layouts easier
Helper function to make creating layouts easier
pub fn define_layout (direction: Direction, constraints: &[Constraint], location: Rect) -> Vec<Rect> {
    Layout::default()
        .direction(direction)
        .constraints(constraints)
        .split(location)
}
pub fn define_layout ( direction : Direction , constraints : & [ Constraint ] , location : Rect ) -> Vec < Rect > { Layout :: default ( ) . direction ( direction ) . constraints ( constraints ) . split ( location ) }
Helper function to make creating layouts easier
Helper function to make creating layouts easier
direction
Direction
constraints
&[Constraint]
location
Rect