pub struct GridBuilder<G: GroupExt + Clone = Group, F: Borrow<WrapperFactory> = WrapperFactory> { /* private fields */ }
Implementations§
Source§impl<G: GroupExt + Clone, F: Borrow<WrapperFactory>> GridBuilder<G, F>
impl<G: GroupExt + Clone, F: Borrow<WrapperFactory>> GridBuilder<G, F>
pub fn with_factory(group: G, factory: F) -> Self
pub fn with_row_spacing(self, spacing: i32) -> Self
pub fn with_col_spacing(self, spacing: i32) -> Self
pub fn with_left_padding(self, padding: i32) -> Self
pub fn with_top_padding(self, padding: i32) -> Self
pub fn with_right_padding(self, padding: i32) -> Self
pub fn with_bottom_padding(self, padding: i32) -> Self
pub fn with_padding(self, left: i32, top: i32, right: i32, bottom: i32) -> Self
pub fn with_default_cell_padding( self, left: i32, top: i32, right: i32, bottom: i32, ) -> Self
pub fn num_rows(&self) -> usize
pub fn num_cols(&self) -> usize
pub fn row(&mut self) -> StripeBuilder<'_, G, F>
pub fn col(&mut self) -> StripeBuilder<'_, G, F>
pub fn row_group(&mut self) -> StripeGroupBuilder<'_, G, F>
pub fn col_group(&mut self) -> StripeGroupBuilder<'_, G, F>
pub fn extend_group(&mut self, group: StripeGroupRef) -> StripeBuilder<'_, G, F>
pub fn cell(&mut self) -> Option<CellBuilder<'_, G, F>>
pub fn cell_at( &mut self, row: usize, col: usize, ) -> Option<CellBuilder<'_, G, F>>
pub fn span( &mut self, row_span: usize, col_span: usize, ) -> Option<CellBuilder<'_, G, F>>
pub fn span_at( &mut self, row: usize, col: usize, row_span: usize, col_span: usize, ) -> Option<CellBuilder<'_, G, F>>
pub fn end(self) -> Grid<G>
Auto Trait Implementations§
impl<G, F> Freeze for GridBuilder<G, F>
impl<G = Group, F = WrapperFactory> !RefUnwindSafe for GridBuilder<G, F>
impl<G = Group, F = WrapperFactory> !Send for GridBuilder<G, F>
impl<G = Group, F = WrapperFactory> !Sync for GridBuilder<G, F>
impl<G, F> Unpin for GridBuilder<G, F>
impl<G = Group, F = WrapperFactory> !UnwindSafe for GridBuilder<G, F>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more