Struct arithmetic_typing::LengthVar
source · pub struct LengthVar { /* private fields */ }
Expand description
Length variable.
A variable represents a certain unknown length. Variables can be either free
or bound to a Function
(similar to const params in Rust, except lengths
always have the usize
type).
Just as with TypeVar
s, types input to a TypeEnvironment
can only have bounded length variables (this is
verified in runtime), but types output by the inference process can contain both.
§Notation
- Bounded length variables are represented as
N
,M
,L
, etc. - Free variables are represented as
_
.
Implementations§
Trait Implementations§
source§impl PartialEq for LengthVar
impl PartialEq for LengthVar
impl Copy for LengthVar
impl Eq for LengthVar
impl StructuralPartialEq for LengthVar
Auto Trait Implementations§
impl Freeze for LengthVar
impl RefUnwindSafe for LengthVar
impl Send for LengthVar
impl Sync for LengthVar
impl Unpin for LengthVar
impl UnwindSafe for LengthVar
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: 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
)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
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more