autd3-rs-core 0.9.0

Core types and link abstraction shared across the AUTD3 phased-array sdk crates.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use super::Link;
use crate::geometry::Geometry;

pub trait IntoLink: Send {
    type Link: Link;

    fn into_link(self, geometry: &Geometry) -> Result<Self::Link, crate::error::LinkError>;
}

impl<L: Link> IntoLink for L {
    type Link = L;

    fn into_link(self, _geometry: &Geometry) -> Result<L, crate::error::LinkError> {
        Ok(self)
    }
}