pub struct NumberWheelIntrinsic(/* private fields */);Expand description
Intrinsic measurer for crate::number_wheel::NumberWheel.
Every digit column is as wide as the widest digit, because that is how
the painter lays the reels out — otherwise a figure that lands on 111
would reserve a narrow box and then overflow it while a 0 rolls past.
Measuring the value once per possible digit and keeping the largest gives
exactly the painter’s own max over digits per column, separators
included, without duplicating its layout arithmetic here.
Implementations§
Source§impl NumberWheelIntrinsic
impl NumberWheelIntrinsic
pub fn from_number_wheel(w: &NumberWheel) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NumberWheelIntrinsic
impl RefUnwindSafe for NumberWheelIntrinsic
impl Send for NumberWheelIntrinsic
impl Sync for NumberWheelIntrinsic
impl Unpin for NumberWheelIntrinsic
impl UnsafeUnpin for NumberWheelIntrinsic
impl UnwindSafe for NumberWheelIntrinsic
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> 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