🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
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.4
to
0.3.5
+1
VERSION
arrayvec - 0.3.4
+9
-6

@@ -7,9 +7,12 @@ language: rust

- rust: nightly
- rust: nightly
env:
- NODROP_FEATURES='no_drop_flag'
script:
- |
cargo build --verbose --features "$FEATURES"
cargo test --verbose --features "$FEATURES"
cargo test --verbose --manifest-path=nodrop/Cargo.toml
cargo bench --verbose --features "$FEATURES" -- --test
cargo bench --verbose --manifest-path=nodrop/Cargo.toml -- --test
cargo doc --verbose --features "$FEATURES"
[ -z "$NODROP_FEATURES" ] && cargo build --verbose --features "$FEATURES"
[ -z "$NODROP_FEATURES" ] && cargo test --verbose --features "$FEATURES"
[ -z "$NODROP_FEATURES" ] && cargo bench --verbose --features "$FEATURES" -- --test
[ -z "$NODROP_FEATURES" ] && cargo doc --verbose --features "$FEATURES"
cargo test --verbose --manifest-path=nodrop/Cargo.toml --features "$NODROP_FEATURES"
cargo bench --verbose --manifest-path=nodrop/Cargo.toml --features "$NODROP_FEATURES" -- --test
[package]
name = "arrayvec"
version = "0.3.4"
version = "0.3.5"
authors = ["bluss"]

@@ -16,1 +16,4 @@ license = "MIT/Apache-2.0"

nodrop = "0.1"
[dependencies.odds]
version = "0.1"
+2
-2

@@ -0,1 +1,2 @@

extern crate odds;
extern crate nodrop;

@@ -20,5 +21,4 @@

mod array;
mod misc;
pub use array::Array;
pub use misc::RangeArgument;
pub use odds::IndexRange as RangeArgument;
use array::Index;

@@ -25,0 +25,0 @@

use std::ops::{
RangeFull,
RangeFrom,
RangeTo,
Range,
};
/// **RangeArgument** is implemented by Rust's built-in range types, produced
/// by range syntax like `..`, `a..`, `..b` or `c..d`.
pub trait RangeArgument {
#[inline]
#[doc(hidden)]
/// Start index (inclusive)
fn start(&self) -> Option<usize> { None }
#[inline]
#[doc(hidden)]
/// End index (exclusive)
fn end(&self) -> Option<usize> { None }
}
impl RangeArgument for RangeFull {}
impl RangeArgument for RangeFrom<usize> {
#[inline]
fn start(&self) -> Option<usize> { Some(self.start) }
}
impl RangeArgument for RangeTo<usize> {
#[inline]
fn end(&self) -> Option<usize> { Some(self.end) }
}
impl RangeArgument for Range<usize> {
#[inline]
fn start(&self) -> Option<usize> { Some(self.start) }
#[inline]
fn end(&self) -> Option<usize> { Some(self.end) }
}