pub struct RankMap { /* private fields */ }Expand description
A per-cell reveal schedule produced by an crate::Ordering.
Implementations§
Source§impl RankMap
impl RankMap
Sourcepub fn new(width: u16, height: u16) -> Self
pub fn new(width: u16, height: u16) -> Self
An all-background map of the given size; fill it in via set.
pub fn width(&self) -> u16
pub fn height(&self) -> u16
Sourcepub fn rank_at(&self, x: u16, y: u16) -> Option<f32>
pub fn rank_at(&self, x: u16, y: u16) -> Option<f32>
The rank of (x, y), or None if it is background / out of bounds.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RankMap
impl RefUnwindSafe for RankMap
impl Send for RankMap
impl Sync for RankMap
impl Unpin for RankMap
impl UnsafeUnpin for RankMap
impl UnwindSafe for RankMap
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