pub struct PrestigeRects {
pub reset: Rect,
pub yes: Rect,
pub no: Rect,
}Expand description
Output of the Prestige panel render — three optional click rects. Exactly which ones are populated depends on whether prestige is available AND whether the player is mid-confirmation:
- Resting (available, no pending confirm):
resetpopulated;yes/nodefault. Clickingresetflips into pending state. - Confirming (pending):
yes/nopopulated;resetdefault. ClickingyesfiresAction::PrestigeReset,nocancels and returns to resting. - Unavailable: all three default (panel just shows lifetime- needed hint).
Fields§
§reset: Rect§yes: Rect§no: RectTrait Implementations§
Source§impl Clone for PrestigeRects
impl Clone for PrestigeRects
Source§fn clone(&self) -> PrestigeRects
fn clone(&self) -> PrestigeRects
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 Default for PrestigeRects
impl Default for PrestigeRects
Source§fn default() -> PrestigeRects
fn default() -> PrestigeRects
Returns the “default value” for a type. Read more
impl Copy for PrestigeRects
Auto Trait Implementations§
impl Freeze for PrestigeRects
impl RefUnwindSafe for PrestigeRects
impl Send for PrestigeRects
impl Sync for PrestigeRects
impl Unpin for PrestigeRects
impl UnsafeUnpin for PrestigeRects
impl UnwindSafe for PrestigeRects
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> 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