#[non_exhaustive]pub struct RegionLayout {
pub regions: Vec<RegionPlacement>,
pub cards: Vec<CardPlacement>,
}Expand description
The cards laid out in their regions.
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.regions: Vec<RegionPlacement>One per region, in the order given.
cards: Vec<CardPlacement>One per card, in the order given.
Implementations§
Source§impl RegionLayout
impl RegionLayout
Sourcepub fn card(&self, key: u64) -> Option<&CardPlacement>
pub fn card(&self, key: u64) -> Option<&CardPlacement>
The placement of the card keyed key.
Sourcepub fn region(&self, key: u64) -> Option<&RegionPlacement>
pub fn region(&self, key: u64) -> Option<&RegionPlacement>
The placement of the region keyed key.
Trait Implementations§
Source§impl Clone for RegionLayout
impl Clone for RegionLayout
Source§fn clone(&self) -> RegionLayout
fn clone(&self) -> RegionLayout
Returns a duplicate 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 RegionLayout
impl Debug for RegionLayout
Source§impl<'de> Deserialize<'de> for RegionLayout
impl<'de> Deserialize<'de> for RegionLayout
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RegionLayout
impl PartialEq for RegionLayout
Source§impl Serialize for RegionLayout
impl Serialize for RegionLayout
impl StructuralPartialEq for RegionLayout
Auto Trait Implementations§
impl Freeze for RegionLayout
impl RefUnwindSafe for RegionLayout
impl Send for RegionLayout
impl Sync for RegionLayout
impl Unpin for RegionLayout
impl UnsafeUnpin for RegionLayout
impl UnwindSafe for RegionLayout
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