1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
use std::ops::{Deref, DerefMut};

use super::AbstractArrow;

/// An instance of a Spectral Arrow
#[derive(Default)]
pub struct SpectralArrow {
    abstract_arrow: AbstractArrow,
}
impl Deref for SpectralArrow {
    type Target = AbstractArrow;

    fn deref(&self) -> &Self::Target {
        &self.abstract_arrow
    }
}
impl DerefMut for SpectralArrow {
    fn deref_mut(&mut self) -> &mut Self::Target {
        &mut self.abstract_arrow
    }
}