[][src]Struct ad_rs::ADLine

pub struct ADLine { /* fields omitted */ }

ADLine

use ta_common::traits::Indicator;
use ad_rs::ADLine;

let mut ad_line = ADLine::new();
let ad = ad_line.next([200f64, 100f64, 170f64, 10f64]);
assert_eq!(4_f64, ad);
let ad = ad_line.next([200f64, 100f64, 170f64, 10f64]);
assert_eq!(8_f64, ad);
ad_line.reset();
let ad = ad_line.next([200f64, 100f64, 170f64, 10f64]);
assert_eq!(4_f64, ad);

Implementations

impl ADLine[src]

pub fn new() -> ADLine[src]

Trait Implementations

impl Indicator<[f64; 4], f64> for ADLine[src]

Auto Trait Implementations

impl RefUnwindSafe for ADLine

impl Send for ADLine

impl Sync for ADLine

impl Unpin for ADLine

impl UnwindSafe for ADLine

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.