Struct GridBuilder

Source
pub struct GridBuilder<G: GroupExt + Clone = Group, F: Borrow<WrapperFactory> = WrapperFactory> { /* private fields */ }

Implementations§

Source§

impl<G: GroupExt + Clone> GridBuilder<G>

Source

pub fn new(group: G) -> Self

Source§

impl<G: GroupExt + Clone, F: Borrow<WrapperFactory>> GridBuilder<G, F>

Source

pub fn with_factory(group: G, factory: F) -> Self

Source

pub fn with_row_spacing(self, spacing: i32) -> Self

Source

pub fn with_col_spacing(self, spacing: i32) -> Self

Source

pub fn with_left_padding(self, padding: i32) -> Self

Source

pub fn with_top_padding(self, padding: i32) -> Self

Source

pub fn with_right_padding(self, padding: i32) -> Self

Source

pub fn with_bottom_padding(self, padding: i32) -> Self

Source

pub fn with_padding(self, left: i32, top: i32, right: i32, bottom: i32) -> Self

Source

pub fn with_default_cell_padding( self, left: i32, top: i32, right: i32, bottom: i32, ) -> Self

Source

pub fn num_rows(&self) -> usize

Source

pub fn num_cols(&self) -> usize

Source

pub fn row(&mut self) -> StripeBuilder<'_, G, F>

Source

pub fn col(&mut self) -> StripeBuilder<'_, G, F>

Source

pub fn row_group(&mut self) -> StripeGroupBuilder<'_, G, F>

Source

pub fn col_group(&mut self) -> StripeGroupBuilder<'_, G, F>

Source

pub fn extend_group(&mut self, group: StripeGroupRef) -> StripeBuilder<'_, G, F>

Source

pub fn cell(&mut self) -> Option<CellBuilder<'_, G, F>>

Source

pub fn cell_at( &mut self, row: usize, col: usize, ) -> Option<CellBuilder<'_, G, F>>

Source

pub fn span( &mut self, row_span: usize, col_span: usize, ) -> Option<CellBuilder<'_, G, F>>

Source

pub fn span_at( &mut self, row: usize, col: usize, row_span: usize, col_span: usize, ) -> Option<CellBuilder<'_, G, F>>

Source

pub fn end(self) -> Grid<G>

Auto Trait Implementations§

§

impl<G, F> Freeze for GridBuilder<G, F>
where F: Freeze, G: Freeze,

§

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>
where F: Unpin, G: Unpin,

§

impl<G = Group, F = WrapperFactory> !UnwindSafe for GridBuilder<G, F>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.