#[non_exhaustive]pub struct FreeFormLayoutConfiguration {
pub elements: Vec<FreeFormLayoutElement>,
pub canvas_size_options: Option<FreeFormLayoutCanvasSizeOptions>,
}
Expand description
The configuration of a free-form layout.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.elements: Vec<FreeFormLayoutElement>
The elements that are included in a free-form layout.
canvas_size_options: Option<FreeFormLayoutCanvasSizeOptions>
Configuration options for the canvas of a free-form layout.
Implementations§
source§impl FreeFormLayoutConfiguration
impl FreeFormLayoutConfiguration
sourcepub fn elements(&self) -> &[FreeFormLayoutElement]
pub fn elements(&self) -> &[FreeFormLayoutElement]
The elements that are included in a free-form layout.
sourcepub fn canvas_size_options(&self) -> Option<&FreeFormLayoutCanvasSizeOptions>
pub fn canvas_size_options(&self) -> Option<&FreeFormLayoutCanvasSizeOptions>
Configuration options for the canvas of a free-form layout.
source§impl FreeFormLayoutConfiguration
impl FreeFormLayoutConfiguration
sourcepub fn builder() -> FreeFormLayoutConfigurationBuilder
pub fn builder() -> FreeFormLayoutConfigurationBuilder
Creates a new builder-style object to manufacture FreeFormLayoutConfiguration
.
Trait Implementations§
source§impl Clone for FreeFormLayoutConfiguration
impl Clone for FreeFormLayoutConfiguration
source§fn clone(&self) -> FreeFormLayoutConfiguration
fn clone(&self) -> FreeFormLayoutConfiguration
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 Debug for FreeFormLayoutConfiguration
impl Debug for FreeFormLayoutConfiguration
source§impl PartialEq for FreeFormLayoutConfiguration
impl PartialEq for FreeFormLayoutConfiguration
source§fn eq(&self, other: &FreeFormLayoutConfiguration) -> bool
fn eq(&self, other: &FreeFormLayoutConfiguration) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for FreeFormLayoutConfiguration
Auto Trait Implementations§
impl RefUnwindSafe for FreeFormLayoutConfiguration
impl Send for FreeFormLayoutConfiguration
impl Sync for FreeFormLayoutConfiguration
impl Unpin for FreeFormLayoutConfiguration
impl UnwindSafe for FreeFormLayoutConfiguration
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> 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>
Creates a shared type from an unshared type.