pub struct Linear(pub usize);
Expand description
A linear index
Newtype to avoid passing values incorrectly
Tuple Fields§
§0: usize
Implementations§
Trait Implementations§
Source§impl AddAssign<usize> for Linear
impl AddAssign<usize> for Linear
Source§fn add_assign(&mut self, rhs: usize)
fn add_assign(&mut self, rhs: usize)
Performs the
+=
operation. Read moreSource§impl AddAssign for Linear
impl AddAssign for Linear
Source§fn add_assign(&mut self, rhs: Linear)
fn add_assign(&mut self, rhs: Linear)
Performs the
+=
operation. Read moreSource§impl<'de> Deserialize<'de> for Linear
impl<'de> Deserialize<'de> for Linear
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 Ord for Linear
impl Ord for Linear
Source§impl PartialOrd for Linear
impl PartialOrd for Linear
Source§impl SubAssign<usize> for Linear
impl SubAssign<usize> for Linear
Source§fn sub_assign(&mut self, rhs: usize)
fn sub_assign(&mut self, rhs: usize)
Performs the
-=
operation. Read moreSource§impl SubAssign for Linear
impl SubAssign for Linear
Source§fn sub_assign(&mut self, rhs: Linear)
fn sub_assign(&mut self, rhs: Linear)
Performs the
-=
operation. Read moreimpl Copy for Linear
impl Eq for Linear
impl StructuralPartialEq for Linear
Auto Trait Implementations§
impl Freeze for Linear
impl RefUnwindSafe for Linear
impl Send for Linear
impl Sync for Linear
impl Unpin for Linear
impl UnwindSafe for Linear
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)