#[non_exhaustive]pub struct GridLayoutConfigurationBuilder { /* private fields */ }Expand description
A builder for GridLayoutConfiguration.
Implementations§
source§impl GridLayoutConfigurationBuilder
impl GridLayoutConfigurationBuilder
sourcepub fn elements(self, input: GridLayoutElement) -> Self
pub fn elements(self, input: GridLayoutElement) -> Self
Appends an item to elements.
To override the contents of this collection use set_elements.
The elements that are included in a grid layout.
sourcepub fn set_elements(self, input: Option<Vec<GridLayoutElement>>) -> Self
pub fn set_elements(self, input: Option<Vec<GridLayoutElement>>) -> Self
The elements that are included in a grid layout.
sourcepub fn get_elements(&self) -> &Option<Vec<GridLayoutElement>>
pub fn get_elements(&self) -> &Option<Vec<GridLayoutElement>>
The elements that are included in a grid layout.
sourcepub fn canvas_size_options(self, input: GridLayoutCanvasSizeOptions) -> Self
pub fn canvas_size_options(self, input: GridLayoutCanvasSizeOptions) -> Self
Configuration options for the canvas of a grid layout.
sourcepub fn set_canvas_size_options(
self,
input: Option<GridLayoutCanvasSizeOptions>,
) -> Self
pub fn set_canvas_size_options( self, input: Option<GridLayoutCanvasSizeOptions>, ) -> Self
Configuration options for the canvas of a grid layout.
sourcepub fn get_canvas_size_options(&self) -> &Option<GridLayoutCanvasSizeOptions>
pub fn get_canvas_size_options(&self) -> &Option<GridLayoutCanvasSizeOptions>
Configuration options for the canvas of a grid layout.
sourcepub fn build(self) -> Result<GridLayoutConfiguration, BuildError>
pub fn build(self) -> Result<GridLayoutConfiguration, BuildError>
Consumes the builder and constructs a GridLayoutConfiguration.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for GridLayoutConfigurationBuilder
impl Clone for GridLayoutConfigurationBuilder
source§fn clone(&self) -> GridLayoutConfigurationBuilder
fn clone(&self) -> GridLayoutConfigurationBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Default for GridLayoutConfigurationBuilder
impl Default for GridLayoutConfigurationBuilder
source§fn default() -> GridLayoutConfigurationBuilder
fn default() -> GridLayoutConfigurationBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for GridLayoutConfigurationBuilder
impl PartialEq for GridLayoutConfigurationBuilder
source§fn eq(&self, other: &GridLayoutConfigurationBuilder) -> bool
fn eq(&self, other: &GridLayoutConfigurationBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for GridLayoutConfigurationBuilder
Auto Trait Implementations§
impl Freeze for GridLayoutConfigurationBuilder
impl RefUnwindSafe for GridLayoutConfigurationBuilder
impl Send for GridLayoutConfigurationBuilder
impl Sync for GridLayoutConfigurationBuilder
impl Unpin for GridLayoutConfigurationBuilder
impl UnwindSafe for GridLayoutConfigurationBuilder
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
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)
🔬This is a nightly-only experimental API. (
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.