Struct lup::Vector
[−]
[src]
pub struct Vector<T>(pub T);
Vector construction loop.
Example:
#[macro_use] extern crate lup; use lup::Vector; fn main() { let a = lup!(Vector<[f64; 4]>: i in 0..4 => {i as f64}); println!("{:?}", a); // Prints `[0.0, 1.0, 2.0, 3.0]`. }
Trait Implementations
impl<T: Default + Copy> Lup<usize, T> for Vector<[T; 2]>
[src]
type Inner = [T; 2]
The resulting type.
fn start() -> Self
[src]
Initialize loop.
fn it(&mut self, ind: usize, val: T) -> bool
[src]
Iterate loop.
fn unwrap(self) -> Self::Inner
[src]
Unwrap the resulting value.
impl<T: Default + Copy> Lup<usize, T> for Vector<[T; 3]>
[src]
type Inner = [T; 3]
The resulting type.
fn start() -> Self
[src]
Initialize loop.
fn it(&mut self, ind: usize, val: T) -> bool
[src]
Iterate loop.
fn unwrap(self) -> Self::Inner
[src]
Unwrap the resulting value.