Struct rs_xfoil::XfoilRunner
source · pub struct XfoilRunner { /* private fields */ }
Implementations
sourceimpl XfoilRunner
impl XfoilRunner
sourcepub fn dispatch(self) -> Result<HashMap<String, Vec<f64>>>
pub fn dispatch(self) -> Result<HashMap<String, Vec<f64>>>
Run Xfoil calculation. This method dispatches a child process, and feeds a sequence of commands to its stdin. After the calculation finishes, it outputs the contents of the resulting polar file in a HashMap. This method panics if something goes wrong either executing the child process, or retrieving a handle to its stdin. It may return an XfoilError if anything goes wrong writing to the process or parsing its output.
Auto Trait Implementations
impl RefUnwindSafe for XfoilRunner
impl Send for XfoilRunner
impl Sync for XfoilRunner
impl Unpin for XfoilRunner
impl UnwindSafe for XfoilRunner
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more