Trait wlambda::nvec::NVecNum[][src]

pub trait NVecNum: Sized + Copy + Clone + PartialEq {
Show methods fn sign() -> char;
fn from_vval(v: &VVal) -> Self;
fn into_vval(self) -> VVal;
fn into_f64(self) -> f64;
fn from_f64(f: f64) -> Self;
fn into_f32(self) -> f32;
fn from_f32(f: f32) -> Self;
fn into_i64(self) -> i64;
fn from_i64(i: i64) -> Self;
fn into_i32(self) -> i32;
fn from_i32(i: i32) -> Self;
fn zero() -> Self;
fn add(self, o: Self) -> Self;
fn sub(self, o: Self) -> Self;
fn mul(self, o: Self) -> Self;
fn div(self, o: Self) -> Self;
fn from_ivec(ivec: NVec<i64>) -> NVec<Self>;
fn into_fvec(s: NVec<Self>) -> NVec<f64>;
fn from_fvec(fvec: NVec<f64>) -> NVec<Self>;
fn from_fvec_round(fvec: NVec<f64>) -> NVec<Self>;
}

Required methods

fn sign() -> char[src]

Returns a letter representing this type

fn from_vval(v: &VVal) -> Self[src]

fn into_vval(self) -> VVal[src]

fn into_f64(self) -> f64[src]

fn from_f64(f: f64) -> Self[src]

fn into_f32(self) -> f32[src]

fn from_f32(f: f32) -> Self[src]

fn into_i64(self) -> i64[src]

fn from_i64(i: i64) -> Self[src]

fn into_i32(self) -> i32[src]

fn from_i32(i: i32) -> Self[src]

fn zero() -> Self[src]

When added/subtracted to something, has no effect

fn add(self, o: Self) -> Self[src]

fn sub(self, o: Self) -> Self[src]

fn mul(self, o: Self) -> Self[src]

fn div(self, o: Self) -> Self[src]

fn from_ivec(ivec: NVec<i64>) -> NVec<Self>[src]

fn into_fvec(s: NVec<Self>) -> NVec<f64>[src]

fn from_fvec(fvec: NVec<f64>) -> NVec<Self>[src]

fn from_fvec_round(fvec: NVec<f64>) -> NVec<Self>[src]

Implementations on Foreign Types

impl NVecNum for i64[src]

fn sign() -> char[src]

fn from_vval(v: &VVal) -> Self[src]

fn into_vval(self) -> VVal[src]

fn into_f64(self) -> f64[src]

fn from_f64(f: f64) -> Self[src]

fn into_f32(self) -> f32[src]

fn from_f32(f: f32) -> Self[src]

fn into_i64(self) -> i64[src]

fn from_i64(i: i64) -> Self[src]

fn into_i32(self) -> i32[src]

fn from_i32(i: i32) -> Self[src]

fn zero() -> Self[src]

fn add(self, o: Self) -> Self[src]

fn sub(self, o: Self) -> Self[src]

fn mul(self, o: Self) -> Self[src]

fn div(self, o: Self) -> Self[src]

fn from_ivec(i: NVec<i64>) -> NVec<Self>[src]

fn into_fvec(i: NVec<Self>) -> NVec<f64>[src]

fn from_fvec(f: NVec<f64>) -> NVec<Self>[src]

fn from_fvec_round(f: NVec<f64>) -> NVec<Self>[src]

impl NVecNum for f64[src]

fn sign() -> char[src]

fn from_vval(v: &VVal) -> Self[src]

fn into_vval(self) -> VVal[src]

fn into_f64(self) -> f64[src]

fn from_f64(f: f64) -> Self[src]

fn into_f32(self) -> f32[src]

fn from_f32(f: f32) -> Self[src]

fn into_i64(self) -> i64[src]

fn from_i64(f: i64) -> Self[src]

fn into_i32(self) -> i32[src]

fn from_i32(f: i32) -> Self[src]

fn zero() -> Self[src]

fn add(self, o: Self) -> Self[src]

fn sub(self, o: Self) -> Self[src]

fn mul(self, o: Self) -> Self[src]

fn div(self, o: Self) -> Self[src]

fn from_ivec(i: NVec<i64>) -> NVec<Self>[src]

fn into_fvec(f: NVec<Self>) -> NVec<f64>[src]

fn from_fvec(f: NVec<f64>) -> NVec<Self>[src]

fn from_fvec_round(f: NVec<f64>) -> NVec<Self>[src]

Implementors