Function libpd_rs::close_patch
source · [−]pub fn close_patch(handle: PatchFileHandle) -> Result<(), PatchLifeCycleError>Expand description
Closes a pd patch which has opened before.
Handle needs to point to a valid opened patch file.
Examples
use std::path::PathBuf;
use libpd_rs::{open_patch, close_patch};
let patch = PathBuf::from("my_patch.pd");
let patch_handle = open_patch(&patch).unwrap();
assert!(close_patch(patch_handle).is_ok());Errors
A list of errors that can occur:
