pub struct State(pub usize);
Expand description
Wrapper around the usize
type. It is necessary for the decrease in value
mismatching (when several values have the same type but two different meanings)
but without the type limit.
Earlier implementations used the u32
type when usize
was only used for
indexes.Now there is no limit for type usage (it was a manual limit against
possible program bugs).
Tuple Fields§
§0: usize
Trait Implementations§
Source§impl AddAssign for State
impl AddAssign for State
Source§fn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Performs the
+=
operation. Read moreSource§impl Ord for State
impl Ord for State
Source§impl PartialOrd for State
impl PartialOrd for State
impl Copy for State
impl Eq for State
impl StructuralPartialEq for State
Auto Trait Implementations§
impl Freeze for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnwindSafe for State
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