#[non_exhaustive]pub struct PlanOptions {
pub strip_rows: u32,
pub square_size: u32,
}Expand description
Knobs for Plan::build.
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.strip_rows: u32Rows per strip in sequential segments.
square_size: u32Edge length of square tiles in spatial segments.
Implementations§
Source§impl PlanOptions
impl PlanOptions
Sourcepub const fn with_strip_rows(self, rows: u32) -> Self
pub const fn with_strip_rows(self, rows: u32) -> Self
Set the rows per strip in sequential segments.
PlanOptions is #[non_exhaustive], so downstream crates cannot use a
struct literal; these setters are the only way to configure it.
Sourcepub const fn with_square_size(self, size: u32) -> Self
pub const fn with_square_size(self, size: u32) -> Self
Set the edge length of square tiles in spatial segments.
Trait Implementations§
Source§impl Clone for PlanOptions
impl Clone for PlanOptions
impl Copy for PlanOptions
Source§impl Debug for PlanOptions
impl Debug for PlanOptions
Source§impl Default for PlanOptions
impl Default for PlanOptions
impl Eq for PlanOptions
Source§impl PartialEq for PlanOptions
impl PartialEq for PlanOptions
impl StructuralPartialEq for PlanOptions
Auto Trait Implementations§
impl Freeze for PlanOptions
impl RefUnwindSafe for PlanOptions
impl Send for PlanOptions
impl Sync for PlanOptions
impl Unpin for PlanOptions
impl UnsafeUnpin for PlanOptions
impl UnwindSafe for PlanOptions
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