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]

The resulting type.

[src]

Initialize loop.

[src]

Iterate loop.

[src]

Unwrap the resulting value.

impl<T: Default + Copy> Lup<usize, T> for Vector<[T; 3]>
[src]

The resulting type.

[src]

Initialize loop.

[src]

Iterate loop.

[src]

Unwrap the resulting value.

impl<T: Default + Copy> Lup<usize, T> for Vector<[T; 4]>
[src]

The resulting type.

[src]

Initialize loop.

[src]

Iterate loop.

[src]

Unwrap the resulting value.

Auto Trait Implementations

impl<T> Send for Vector<T> where
    T: Send

impl<T> Sync for Vector<T> where
    T: Sync