Skip to content

Commit 4db91af

Browse files
author
sigurd4
committed
Update deps
1 parent 11ff987 commit 4db91af

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+119
-62
lines changed

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ repository = "https://github.com/sigurd4/array__ops"
1212

1313
[features]
1414
default = ["alloc"]
15-
alloc = ["slice_ops/alloc"]
15+
alloc = ["slice_ops/alloc", "array_trait/alloc"]
1616
#std = ["alloc"]
1717

1818
[dependencies]
1919
moddef = "0.2.6"
20-
array_trait = "1.0.3"
21-
slice_ops = "1.0.6"
20+
array_trait = "1.0.7"
21+
slice_ops = "1.0.7"
2222

2323
[dev-dependencies]
2424
tokio-test = "0.4.4"

src/ops/_1d/argreduce.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
use array_trait::Array;
2+
use slice_ops::AsSlice;
23

34
#[const_trait]
4-
pub trait ArrayArgReduce<T, const N: usize>: Array<Item = T>
5+
pub trait ArrayArgReduce<T, const N: usize>: Array + AsSlice<Item = T>
56
{
67
/// Performs an argument reduction, finding the final righthand operand for which the comparison yields true.
78
///

src/ops/_1d/chain.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
use array_trait::Array;
2+
use slice_ops::AsSlice;
23

34
use crate::private;
45

56
#[const_trait]
6-
pub trait ArrayChain<T, const N: usize>: Array<Item = T>
7+
pub trait ArrayChain<T, const N: usize>: Array + AsSlice<Item = T>
78
{
89
/// Chains two arrays with the same item together.
910
///

src/ops/_1d/chunks.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
use core::pin::Pin;
22

33
use array_trait::Array;
4+
use slice_ops::AsSlice;
45

56
use crate::private;
67

78
use super::ArraySplit;
89

910
#[const_trait]
10-
pub trait ArrayChunks<T, const N: usize>: Array<Item = T>
11+
pub trait ArrayChunks<T, const N: usize>: Array + AsSlice<Item = T>
1112
{
1213
/// Divides an array into chunks, then yielding the rest in a separate array.
1314
///

src/ops/_1d/differentiate.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
use core::ops::SubAssign;
22

33
use array_trait::Array;
4+
use slice_ops::AsSlice;
45

56
#[const_trait]
6-
pub trait ArrayDifferentiate<T, const N: usize>: Array<Item = T>
7+
pub trait ArrayDifferentiate<T, const N: usize>: Array + AsSlice<Item = T>
78
{
89
/// Differentiates array (discrete calculus)
910
///

src/ops/_1d/divide_and_conquer.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
use core::{marker::Destruct, ops::AsyncFn, pin::Pin};
22

33
use array_trait::Array;
4+
use slice_ops::AsSlice;
45

56
use crate::{private::guard::PartialDivideAndConquerGuard, future::FutureDivideAndConquer};
67

78
use super::ArrayEach;
89

910
#[const_trait]
10-
pub trait ArrayDivideAndConquer<T, const N: usize>: Array<Item = T>
11+
pub trait ArrayDivideAndConquer<T, const N: usize>: Array + AsSlice<Item = T>
1112
{
1213
fn divide_and_conquer<F>(self, reduce: F) -> Option<T>
1314
where

src/ops/_1d/each.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
use core::pin::Pin;
22

33
use array_trait::Array;
4+
use slice_ops::AsSlice;
45

56
use super::ArrayMap;
67

78
#[const_trait]
8-
pub trait ArrayEach<T, const N: usize>: Array<Item = T>
9+
pub trait ArrayEach<T, const N: usize>: Array + AsSlice<Item = T>
910
{
1011
fn each_ref(&self) -> [&T; N];
1112
fn each_mut(&mut self) -> [&mut T; N];

src/ops/_1d/enumerate.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
use core::pin::Pin;
22

33
use array_trait::Array;
4+
use slice_ops::AsSlice;
45

56
use super::ArrayEnumerateMap;
67

78
#[const_trait]
8-
pub trait ArrayEnumerate<T, const N: usize>: Array<Item = T>
9+
pub trait ArrayEnumerate<T, const N: usize>: Array + AsSlice<Item = T>
910
{
1011
/// Enumerates each element in the array.
1112
///

src/ops/_1d/enumerate_for_each.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
use core::{marker::Destruct, ops::AsyncFn};
22

33
use array_trait::Array;
4+
use slice_ops::AsSlice;
45

56
use crate::{future::{Actions, TryActions}, private::guard::PartialEmptyGuard};
67

78
use super::ArrayEnumerateMap;
89

910
#[const_trait]
10-
pub trait ArrayEnumerateForEach<T, const N: usize>: Array<Item = T>
11+
pub trait ArrayEnumerateForEach<T, const N: usize>: Array + AsSlice<Item = T>
1112
{
1213
fn enumerate_for_each<F>(self, action: F)
1314
where

src/ops/_1d/enumerate_meet.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
use core::{marker::Destruct, ops::AsyncFn, pin::Pin};
22

33
use array_trait::Array;
4+
use slice_ops::AsSlice;
45

56
use crate::{private::guard, form::ArrayForm};
67

@@ -9,7 +10,7 @@ use self::guard::PartialEmptyGuard;
910
use super::{ArrayJoin, ArrayEnumerateVisit, ArrayEnumerateZipWith};
1011

1112
#[const_trait]
12-
pub trait ArrayEnumerateMeet<T, const N: usize>: Array<Item = T>
13+
pub trait ArrayEnumerateMeet<T, const N: usize>: Array + AsSlice<Item = T>
1314
{
1415
fn enumerate_meet_each<'a, F, Rhs>(&'a self, rhs: Rhs, visitor: F)
1516
where

0 commit comments

Comments
 (0)