array-ops
Ready made default method implementations for array data types.
Overview
This crate provides a number of traits with default implementations for most of the standard
library's methods on array like data structures. All you need to do to apply them to your own array
like data structure is to implement HasLength
and Index<usize>
(and IndexMut<usize>
for
mutable operations), which means you need a len()
method and an index()
method, and the Array
trait will provide default methods for everything else, implemented using just those two methods.
Documentation
Example
# use *;
# use ;
;
#
Licence
Copyright 2020 Bodil Stokke
This software is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
Code of Conduct
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.