#[non_exhaustive]pub struct GridLayoutElementBuilder { /* private fields */ }Expand description
A builder for GridLayoutElement.
Implementations§
source§impl GridLayoutElementBuilder
impl GridLayoutElementBuilder
sourcepub fn element_id(self, input: impl Into<String>) -> Self
pub fn element_id(self, input: impl Into<String>) -> Self
A unique identifier for an element within a grid layout.
This field is required.sourcepub fn set_element_id(self, input: Option<String>) -> Self
pub fn set_element_id(self, input: Option<String>) -> Self
A unique identifier for an element within a grid layout.
sourcepub fn get_element_id(&self) -> &Option<String>
pub fn get_element_id(&self) -> &Option<String>
A unique identifier for an element within a grid layout.
sourcepub fn element_type(self, input: LayoutElementType) -> Self
pub fn element_type(self, input: LayoutElementType) -> Self
The type of element.
This field is required.sourcepub fn set_element_type(self, input: Option<LayoutElementType>) -> Self
pub fn set_element_type(self, input: Option<LayoutElementType>) -> Self
The type of element.
sourcepub fn get_element_type(&self) -> &Option<LayoutElementType>
pub fn get_element_type(&self) -> &Option<LayoutElementType>
The type of element.
sourcepub fn column_index(self, input: i32) -> Self
pub fn column_index(self, input: i32) -> Self
The column index for the upper left corner of an element.
sourcepub fn set_column_index(self, input: Option<i32>) -> Self
pub fn set_column_index(self, input: Option<i32>) -> Self
The column index for the upper left corner of an element.
sourcepub fn get_column_index(&self) -> &Option<i32>
pub fn get_column_index(&self) -> &Option<i32>
The column index for the upper left corner of an element.
sourcepub fn column_span(self, input: i32) -> Self
pub fn column_span(self, input: i32) -> Self
The width of a grid element expressed as a number of grid columns.
This field is required.sourcepub fn set_column_span(self, input: Option<i32>) -> Self
pub fn set_column_span(self, input: Option<i32>) -> Self
The width of a grid element expressed as a number of grid columns.
sourcepub fn get_column_span(&self) -> &Option<i32>
pub fn get_column_span(&self) -> &Option<i32>
The width of a grid element expressed as a number of grid columns.
sourcepub fn row_index(self, input: i32) -> Self
pub fn row_index(self, input: i32) -> Self
The row index for the upper left corner of an element.
sourcepub fn set_row_index(self, input: Option<i32>) -> Self
pub fn set_row_index(self, input: Option<i32>) -> Self
The row index for the upper left corner of an element.
sourcepub fn get_row_index(&self) -> &Option<i32>
pub fn get_row_index(&self) -> &Option<i32>
The row index for the upper left corner of an element.
sourcepub fn row_span(self, input: i32) -> Self
pub fn row_span(self, input: i32) -> Self
The height of a grid element expressed as a number of grid rows.
This field is required.sourcepub fn set_row_span(self, input: Option<i32>) -> Self
pub fn set_row_span(self, input: Option<i32>) -> Self
The height of a grid element expressed as a number of grid rows.
sourcepub fn get_row_span(&self) -> &Option<i32>
pub fn get_row_span(&self) -> &Option<i32>
The height of a grid element expressed as a number of grid rows.
sourcepub fn build(self) -> Result<GridLayoutElement, BuildError>
pub fn build(self) -> Result<GridLayoutElement, BuildError>
Consumes the builder and constructs a GridLayoutElement.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for GridLayoutElementBuilder
impl Clone for GridLayoutElementBuilder
source§fn clone(&self) -> GridLayoutElementBuilder
fn clone(&self) -> GridLayoutElementBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for GridLayoutElementBuilder
impl Debug for GridLayoutElementBuilder
source§impl Default for GridLayoutElementBuilder
impl Default for GridLayoutElementBuilder
source§fn default() -> GridLayoutElementBuilder
fn default() -> GridLayoutElementBuilder
source§impl PartialEq for GridLayoutElementBuilder
impl PartialEq for GridLayoutElementBuilder
source§fn eq(&self, other: &GridLayoutElementBuilder) -> bool
fn eq(&self, other: &GridLayoutElementBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for GridLayoutElementBuilder
Auto Trait Implementations§
impl Freeze for GridLayoutElementBuilder
impl RefUnwindSafe for GridLayoutElementBuilder
impl Send for GridLayoutElementBuilder
impl Sync for GridLayoutElementBuilder
impl Unpin for GridLayoutElementBuilder
impl UnwindSafe for GridLayoutElementBuilder
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more