Sign In

arrayvec

Package Overview
Dependencies
Maintainers
0
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

arrayvec - cargo Package Compare versions

Comparing version
0.3.1
to
0.3.2
+1
-1
Cargo.toml
[package]
name = "arrayvec"
version = "0.3.1"
version = "0.3.2"
authors = ["bluss"]

@@ -5,0 +5,0 @@ license = "MIT/Apache-2.0"

@@ -24,4 +24,7 @@

impl Index for u8 {
#[inline(always)]
fn zero() -> Self { 0 }
#[inline(always)]
fn to_usize(self) -> usize { self as usize }
#[inline(always)]
fn from(ix: usize) -> Self { ix as u8 }

@@ -31,4 +34,7 @@ }

impl Index for u16 {
#[inline(always)]
fn zero() -> Self { 0 }
#[inline(always)]
fn to_usize(self) -> usize { self as usize }
#[inline(always)]
fn from(ix: usize) -> Self { ix as u16 }

@@ -35,0 +41,0 @@ }

@@ -779,2 +779,6 @@ extern crate nodrop;

assert_eq!(&v[..], &[0, 9, 1]);
let mut v = ArrayVec::from([2]);
assert_eq!(v.insert(1, 1), Some(1));
assert_eq!(v.insert(2, 1), Some(1));
}