Lines Matching refs:Chan
27 struct Chan<T> { struct
36 impl<T> Clone for Chan<T> { implementation
37 fn clone(&self) -> Chan<T> { in clone()
38 Chan { in clone()
44 impl<T> Chan<T> { impl
92 impl<T> Iterator for Chan<T> { implementation
100 impl<'a, T> IntoIterator for &'a Chan<T> { implementation
102 type IntoIter = Chan<T>;
109 fn make<T>(cap: usize) -> Chan<T> { in make()
111 Chan { in make()
116 fn make_unbounded<T>() -> Chan<T> { in make_unbounded()
118 Chan { in make_unbounded()
237 fn sender(n: i32, c1: Chan<i32>, c2: Chan<i32>, c3: Chan<i32>, c4: Chan<i32>) { in sender()
253 fn mux(out: Chan<i32>, inp: Chan<i32>, done: Chan<bool>) { in mux()
260 fn recver(inp: Chan<i32>) { in recver()
315 fn chain(ch: Chan<i32>, val: i32, inp: Chan<i32>, out: Chan<i32>) { in chain()
347 fn f(left: Chan<i32>, right: Chan<i32>) { in f()
374 fn i32receiver(c: Chan<i32>, strobe: Chan<bool>) { in i32receiver()
381 fn i32sender(c: Chan<i32>, strobe: Chan<bool>) { in i32sender()
386 fn i64receiver(c: Chan<i64>, strobe: Chan<bool>) { in i64receiver()
393 fn i64sender(c: Chan<i64>, strobe: Chan<bool>) { in i64sender()
398 fn breceiver(c: Chan<bool>, strobe: Chan<bool>) { in breceiver()
405 fn bsender(c: Chan<bool>, strobe: Chan<bool>) { in bsender()
410 fn sreceiver(c: Chan<String>, strobe: Chan<bool>) { in sreceiver()
417 fn ssender(c: Chan<String>, strobe: Chan<bool>) { in ssender()
652 let send = |mut a: Option<&Chan<u32>>, mut b: Option<&Chan<u32>>| { in main()
696 fn sender(c: &Chan<i32>, n: i32) { in main()
702 fn receiver(c: &Chan<i32>, dummy: &Chan<i32>, n: i32) { in main()
783 fn recv1(c: Chan<i32>) { in recv1()
787 fn recv2(c: Chan<i32>) { in recv2()
793 fn recv3(c: Chan<i32>) { in recv3()
801 fn send1(recv: fn(Chan<i32>)) { in send1()
808 fn send2(recv: fn(Chan<i32>)) { in send2()
817 fn send3(recv: fn(Chan<i32>)) { in send3()
846 fn generate(ch: Chan<i32>) { in generate()
854 fn filter(in_ch: Chan<i32>, out_ch: Chan<i32>, prime: i32) { in filter()
862 fn sieve(primes: Chan<i32>) { in sieve()