MCPcopy Create free account
hub / github.com/daniel-e/rustml / append

Method append

src/vectors.rs:25–28  ·  view source on GitHub ↗
(&self, v: &[T])

Source from the content-addressed store, hash-verified

23impl <T: Clone> Append<T> for Vec<T> {
24
25 fn append(&self, v: &[T]) -> Vec<T> {
26
27 self.iter().chain(v.iter()).cloned().collect::<Vec<T>>()
28 }
29}
30
31impl <T: Clone> Append<T> for [T] {

Callers 4

to_fileMethod · 0.80
add_layerMethod · 0.80
predictMethod · 0.80
feedforwardMethod · 0.80

Calls 1

iterMethod · 0.45

Tested by

no test coverage detected