From 0502ac759419ccee2abc7d8882eee5bc1bc4415b Mon Sep 17 00:00:00 2001 From: nickray Date: Sat, 27 Feb 2021 00:45:53 +0000 Subject: [PATCH] deploy: 47781791a4348c2e7d117def9ab61e289c547758 --- generic_array/all.html | 2 +- generic_array/functional/index.html | 2 +- .../functional/trait.FunctionalSequence.html | 10 +- .../trait.MappedGenericSequence.html | 6 +- .../functional/type.MappedSequence.html | 2 +- generic_array/index.html | 6 +- generic_array/iter/index.html | 2 +- .../iter/struct.GenericArrayIter.html | 36 +-- generic_array/sequence/index.html | 2 +- generic_array/sequence/trait.Concat.html | 10 +- .../sequence/trait.GenericSequence.html | 4 +- generic_array/sequence/trait.Lengthen.html | 10 +- generic_array/sequence/trait.Shorten.html | 10 +- generic_array/sequence/trait.Split.html | 10 +- generic_array/sequence/type.SequenceItem.html | 2 +- generic_array/struct.GenericArray.html | 224 +++++++++--------- search-index.js | 4 +- src/generic_array/arr.rs.html | 12 +- src/generic_array/functional.rs.html | 6 +- src/generic_array/hex.rs.html | 38 ++- src/generic_array/impls.rs.html | 120 +--------- src/generic_array/iter.rs.html | 133 +---------- src/generic_array/lib.rs.html | 36 ++- src/generic_array/sequence.rs.html | 22 +- src/trussed/service.rs.html | 14 +- src/trussed/store/certstore.rs.html | 10 +- src/trussed/store/counterstore.rs.html | 2 +- src/trussed/store/filestore.rs.html | 8 +- src/trussed/store/keystore.rs.html | 8 +- trussed/store/certstore/index.html | 2 +- .../certstore/struct.ClientCertstore.html | 2 +- trussed/store/certstore/trait.Certstore.html | 6 +- trussed/store/filestore/index.html | 2 +- .../filestore/struct.ClientFilestore.html | 12 +- .../filestore/struct.ReadDirFilesState.html | 2 +- .../store/filestore/struct.ReadDirState.html | 2 +- trussed/store/filestore/trait.Filestore.html | 12 +- trussed/store/filestore/type.ClientId.html | 2 +- 38 files changed, 273 insertions(+), 520 deletions(-) diff --git a/generic_array/all.html b/generic_array/all.html index 741eed741cd..8ee345c0f99 100644 --- a/generic_array/all.html +++ b/generic_array/all.html @@ -1,6 +1,6 @@ List of all items in this crate -

[−][src]Module generic_array::functional

Functional programming with generic sequences

Please see tests/generics.rs for examples of how to best use these in your generic functions.

Traits

FunctionalSequence

Defines functional programming methods for generic sequences

diff --git a/generic_array/functional/trait.FunctionalSequence.html b/generic_array/functional/trait.FunctionalSequence.html index 7be401119b6..ef5c1fa59bb 100644 --- a/generic_array/functional/trait.FunctionalSequence.html +++ b/generic_array/functional/trait.FunctionalSequence.html @@ -1,7 +1,7 @@ generic_array::functional::FunctionalSequence - Rust

[−][src]Trait generic_array::functional::FunctionalSequence

pub unsafe trait FunctionalSequence<T>: GenericSequence<T> {
+                Change settings

[−][src]Trait generic_array::functional::FunctionalSequence

pub unsafe trait FunctionalSequence<T>: GenericSequence<T> {
     fn map<U, F>(self, f: F) -> MappedSequence<Self, T, U>
    where
        Self: MappedGenericSequence<T, U>,
        Self::Length: ArrayLength<U>,
        F: FnMut(Self::Item) -> U
, { ... }
fn zip<B, Rhs, U, F>(self, rhs: Rhs, f: F) -> MappedSequence<Self, T, U>
    where
        Self: MappedGenericSequence<T, U>,
        Rhs: MappedGenericSequence<B, U, Mapped = MappedSequence<Self, T, U>>,
        Self::Length: ArrayLength<B> + ArrayLength<U>,
        Rhs: GenericSequence<B, Length = Self::Length>,
        F: FnMut(Self::Item, Rhs::Item) -> U
, @@ -9,13 +9,13 @@
fn fold<U, F>(self, init: U, f: F) -> U
    where
        F: FnMut(U, Self::Item) -> U
, { ... } }

Defines functional programming methods for generic sequences

-

Provided methods

fn map<U, F>(self, f: F) -> MappedSequence<Self, T, U> where
    Self: MappedGenericSequence<T, U>,
    Self::Length: ArrayLength<U>,
    F: FnMut(Self::Item) -> U, 
[src]

Maps a GenericSequence to another GenericSequence.

+

Provided methods

fn map<U, F>(self, f: F) -> MappedSequence<Self, T, U> where
    Self: MappedGenericSequence<T, U>,
    Self::Length: ArrayLength<U>,
    F: FnMut(Self::Item) -> U, 
[src]

Maps a GenericSequence to another GenericSequence.

If the mapping function panics, any already initialized elements in the new sequence will be dropped, AND any unused elements in the source sequence will also be dropped.

-

fn zip<B, Rhs, U, F>(self, rhs: Rhs, f: F) -> MappedSequence<Self, T, U> where
    Self: MappedGenericSequence<T, U>,
    Rhs: MappedGenericSequence<B, U, Mapped = MappedSequence<Self, T, U>>,
    Self::Length: ArrayLength<B> + ArrayLength<U>,
    Rhs: GenericSequence<B, Length = Self::Length>,
    F: FnMut(Self::Item, Rhs::Item) -> U, 
[src]

Combines two GenericSequence instances and iterates through both of them, +

fn zip<B, Rhs, U, F>(self, rhs: Rhs, f: F) -> MappedSequence<Self, T, U> where
    Self: MappedGenericSequence<T, U>,
    Rhs: MappedGenericSequence<B, U, Mapped = MappedSequence<Self, T, U>>,
    Self::Length: ArrayLength<B> + ArrayLength<U>,
    Rhs: GenericSequence<B, Length = Self::Length>,
    F: FnMut(Self::Item, Rhs::Item) -> U, 
[src]

Combines two GenericSequence instances and iterates through both of them, initializing a new GenericSequence with the result of the zipped mapping function.

If the mapping function panics, any already initialized elements in the new sequence will be dropped, AND any unused elements in the source sequences will also be dropped.

-

fn fold<U, F>(self, init: U, f: F) -> U where
    F: FnMut(U, Self::Item) -> U, 
[src]

Folds (or reduces) a sequence of data into a single value.

+

fn fold<U, F>(self, init: U, f: F) -> U where
    F: FnMut(U, Self::Item) -> U, 
[src]

Folds (or reduces) a sequence of data into a single value.

If the fold function panics, any unused elements will be dropped.

-
Loading content...

Implementors

impl<'a, T, S: GenericSequence<T>> FunctionalSequence<T> for &'a S where
    &'a S: GenericSequence<T>, 
[src]

impl<'a, T, S: GenericSequence<T>> FunctionalSequence<T> for &'a mut S where
    &'a mut S: GenericSequence<T>, 
[src]

impl<T, N> FunctionalSequence<T> for GenericArray<T, N> where
    N: ArrayLength<T>,
    Self: GenericSequence<T, Item = T, Length = N>, 
[src]

Loading content...
\ No newline at end of file +Loading content...

Implementors

impl<'a, T, S: GenericSequence<T>> FunctionalSequence<T> for &'a S where
    &'a S: GenericSequence<T>, 
[src]

impl<'a, T, S: GenericSequence<T>> FunctionalSequence<T> for &'a mut S where
    &'a mut S: GenericSequence<T>, 
[src]

impl<T, N> FunctionalSequence<T> for GenericArray<T, N> where
    N: ArrayLength<T>,
    Self: GenericSequence<T, Item = T, Length = N>, 
[src]

Loading content...
\ No newline at end of file diff --git a/generic_array/functional/trait.MappedGenericSequence.html b/generic_array/functional/trait.MappedGenericSequence.html index 423ef6ce83a..7017efd7485 100644 --- a/generic_array/functional/trait.MappedGenericSequence.html +++ b/generic_array/functional/trait.MappedGenericSequence.html @@ -1,9 +1,9 @@ generic_array::functional::MappedGenericSequence - Rust

[−][src]Trait generic_array::functional::MappedGenericSequence

pub unsafe trait MappedGenericSequence<T, U>: GenericSequence<T> where
    Self::Length: ArrayLength<U>, 
{ + Change settings

[−][src]Trait generic_array::functional::MappedGenericSequence

pub unsafe trait MappedGenericSequence<T, U>: GenericSequence<T> where
    Self::Length: ArrayLength<U>, 
{ type Mapped: GenericSequence<U, Length = Self::Length>; }

Defines the relationship between one generic sequence and another, for operations such as map and zip.

-

Associated Types

type Mapped: GenericSequence<U, Length = Self::Length>[src]

Mapped sequence type

-
Loading content...

Implementors

impl<'a, T, U, S: MappedGenericSequence<T, U>> MappedGenericSequence<T, U> for &'a S where
    &'a S: GenericSequence<T>,
    S: GenericSequence<T, Length = <&'a S as GenericSequence<T>>::Length>,
    <S as GenericSequence<T>>::Length: ArrayLength<U>, 
[src]

type Mapped = <S as MappedGenericSequence<T, U>>::Mapped

impl<'a, T, U, S: MappedGenericSequence<T, U>> MappedGenericSequence<T, U> for &'a mut S where
    &'a mut S: GenericSequence<T>,
    S: GenericSequence<T, Length = <&'a mut S as GenericSequence<T>>::Length>,
    <S as GenericSequence<T>>::Length: ArrayLength<U>, 
[src]

type Mapped = <S as MappedGenericSequence<T, U>>::Mapped

impl<T, U, N> MappedGenericSequence<T, U> for GenericArray<T, N> where
    N: ArrayLength<T> + ArrayLength<U>,
    GenericArray<U, N>: GenericSequence<U, Length = N>, 
[src]

type Mapped = GenericArray<U, N>

Loading content...
\ No newline at end of file +

Associated Types

type Mapped: GenericSequence<U, Length = Self::Length>[src]

Mapped sequence type

+
Loading content...

Implementors

impl<'a, T, U, S: MappedGenericSequence<T, U>> MappedGenericSequence<T, U> for &'a S where
    &'a S: GenericSequence<T>,
    S: GenericSequence<T, Length = <&'a S as GenericSequence<T>>::Length>,
    <S as GenericSequence<T>>::Length: ArrayLength<U>, 
[src]

type Mapped = <S as MappedGenericSequence<T, U>>::Mapped

impl<'a, T, U, S: MappedGenericSequence<T, U>> MappedGenericSequence<T, U> for &'a mut S where
    &'a mut S: GenericSequence<T>,
    S: GenericSequence<T, Length = <&'a mut S as GenericSequence<T>>::Length>,
    <S as GenericSequence<T>>::Length: ArrayLength<U>, 
[src]

type Mapped = <S as MappedGenericSequence<T, U>>::Mapped

impl<T, U, N> MappedGenericSequence<T, U> for GenericArray<T, N> where
    N: ArrayLength<T> + ArrayLength<U>,
    GenericArray<U, N>: GenericSequence<U, Length = N>, 
[src]

type Mapped = GenericArray<U, N>

Loading content...
\ No newline at end of file diff --git a/generic_array/functional/type.MappedSequence.html b/generic_array/functional/type.MappedSequence.html index cbf0528f6da..d26612e8302 100644 --- a/generic_array/functional/type.MappedSequence.html +++ b/generic_array/functional/type.MappedSequence.html @@ -1,5 +1,5 @@ generic_array::functional::MappedSequence - Rust

[−][src]Type Definition generic_array::functional::MappedSequence

type MappedSequence<S, T, U> = <<S as MappedGenericSequence<T, U>>::Mapped as GenericSequence<U>>::Sequence;

Accessor type for a mapped generic sequence

+ Change settings

[−][src]Type Definition generic_array::functional::MappedSequence

type MappedSequence<S, T, U> = <<S as MappedGenericSequence<T, U>>::Mapped as GenericSequence<U>>::Sequence;

Accessor type for a mapped generic sequence

\ No newline at end of file diff --git a/generic_array/index.html b/generic_array/index.html index 4ad99eaa59d..fbd39c5192e 100644 --- a/generic_array/index.html +++ b/generic_array/index.html @@ -1,7 +1,7 @@ generic_array - Rust -

[−][src]Crate generic_array

This crate implements a structure that can be used as a generic array type. +

[−][src]Crate generic_array

This crate implements a structure that can be used as a generic array type.use Core Rust array types [T; N] can't be used generically with respect to N, so for example this:

struct Foo<T, N> {
@@ -25,7 +25,7 @@ the above be implemented as:

let array = arr![u32; 1, 2, 3]; assert_eq!(array[2], 3);

Re-exports

-
pub extern crate typenum;
pub use self::iter::GenericArrayIter;

Modules

+
pub extern crate typenum;
pub use iter::GenericArrayIter;

Modules

arr

Implementation for arr! macro.

functional

Functional programming with generic sequences

iter

GenericArray iterator implementation.

diff --git a/generic_array/iter/index.html b/generic_array/iter/index.html index 7c85544de16..fcaa8eb9cb6 100644 --- a/generic_array/iter/index.html +++ b/generic_array/iter/index.html @@ -1,7 +1,7 @@ generic_array::iter - Rust

[−][src]Module generic_array::iter

GenericArray iterator implementation.

+ Change settings

[−][src]Module generic_array::iter

GenericArray iterator implementation.

Structs

GenericArrayIter

An iterator that moves out of a GenericArray

\ No newline at end of file diff --git a/generic_array/iter/struct.GenericArrayIter.html b/generic_array/iter/struct.GenericArrayIter.html index 73f39ec8514..85412dfbb85 100644 --- a/generic_array/iter/struct.GenericArrayIter.html +++ b/generic_array/iter/struct.GenericArrayIter.html @@ -1,31 +1,30 @@ generic_array::iter::GenericArrayIter - Rust -

[−][src]Struct generic_array::iter::GenericArrayIter

pub struct GenericArrayIter<T, N: ArrayLength<T>> { /* fields omitted */ }

An iterator that moves out of a GenericArray

-

Implementations

impl<T, N> GenericArrayIter<T, N> where
    N: ArrayLength<T>, 
[src]

pub fn as_slice(&self) -> &[T][src]

Returns the remaining items of this iterator as a slice

-

pub fn as_mut_slice(&mut self) -> &mut [T][src]

Returns the remaining items of this iterator as a mutable slice

-

Trait Implementations

impl<T: Clone, N> Clone for GenericArrayIter<T, N> where
    N: ArrayLength<T>, 
[src]