# Struct term_model::index::Linear

source · `pub struct Linear(pub usize);`

## Expand description

A linear index

Newtype to avoid passing values incorrectly

## Tuple Fields§

§`0: usize`

## Implementations§

## Methods from Deref<Target = usize>§

#### pub const MIN: usize = 0usize

#### pub const MAX: usize = 18_446_744_073_709_551_615usize

#### pub const BITS: u32 = 64u32

## 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 PartialEq for Linear

### impl PartialEq for Linear

source§### impl PartialOrd for Linear

### impl PartialOrd for Linear

1.0.0 · source§#### fn le(&self, other: &Rhs) -> bool

#### fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for

`self`

and `other`

) and is used by the `<=`

operator. Read moresource§### 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 more### impl 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§#### default unsafe fn clone_to_uninit(&self, dst: *mut T)

#### default unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (

`clone_to_uninit`

)source§### impl<T> CloneToUninit for Twhere
T: Copy,

### impl<T> CloneToUninit for Twhere
T: Copy,

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`

)