pub struct LayoutParams { /* private fields */ }Expand description
Parameters of the simulated deployment used to compute a layout.
Implementations§
Source§impl LayoutParams
impl LayoutParams
Sourcepub fn unit_width(&self) -> &f32
pub fn unit_width(&self) -> &f32
Frontage of a single unit.
Sourcepub fn unit_depth(&self) -> &f32
pub fn unit_depth(&self) -> &f32
Depth of a single unit.
Sourcepub fn default_unit_count(&self) -> &u32
pub fn default_unit_count(&self) -> &u32
Units assumed on each block without an explicit count, before applying the block’s thresholds.
Sourcepub fn unit_counts(&self) -> &HashMap<u32, u32>
pub fn unit_counts(&self) -> &HashMap<u32, u32>
Explicit unit counts for specific blocks, by block id.
Source§impl LayoutParams
impl LayoutParams
Sourcepub fn unit_width_mut(&mut self) -> &mut f32
pub fn unit_width_mut(&mut self) -> &mut f32
Frontage of a single unit.
Sourcepub fn unit_depth_mut(&mut self) -> &mut f32
pub fn unit_depth_mut(&mut self) -> &mut f32
Depth of a single unit.
Sourcepub fn default_unit_count_mut(&mut self) -> &mut u32
pub fn default_unit_count_mut(&mut self) -> &mut u32
Units assumed on each block without an explicit count, before applying the block’s thresholds.
Sourcepub fn unit_counts_mut(&mut self) -> &mut HashMap<u32, u32>
pub fn unit_counts_mut(&mut self) -> &mut HashMap<u32, u32>
Explicit unit counts for specific blocks, by block id.
Source§impl LayoutParams
impl LayoutParams
Sourcepub fn set_unit_width(&mut self, val: f32) -> &mut Self
pub fn set_unit_width(&mut self, val: f32) -> &mut Self
Frontage of a single unit.
Sourcepub fn set_unit_depth(&mut self, val: f32) -> &mut Self
pub fn set_unit_depth(&mut self, val: f32) -> &mut Self
Depth of a single unit.
Sourcepub fn set_default_unit_count(&mut self, val: u32) -> &mut Self
pub fn set_default_unit_count(&mut self, val: u32) -> &mut Self
Units assumed on each block without an explicit count, before applying the block’s thresholds.
Sourcepub fn set_unit_counts(&mut self, val: HashMap<u32, u32>) -> &mut Self
pub fn set_unit_counts(&mut self, val: HashMap<u32, u32>) -> &mut Self
Explicit unit counts for specific blocks, by block id.
Trait Implementations§
Source§impl Clone for LayoutParams
impl Clone for LayoutParams
Source§fn clone(&self) -> LayoutParams
fn clone(&self) -> LayoutParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LayoutParams
impl Debug for LayoutParams
Source§impl Default for LayoutParams
impl Default for LayoutParams
Source§impl PartialEq for LayoutParams
impl PartialEq for LayoutParams
impl StructuralPartialEq for LayoutParams
Auto Trait Implementations§
impl Freeze for LayoutParams
impl RefUnwindSafe for LayoutParams
impl Send for LayoutParams
impl Sync for LayoutParams
impl Unpin for LayoutParams
impl UnsafeUnpin for LayoutParams
impl UnwindSafe for LayoutParams
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 more§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().impl<T> Scalar for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.