/// Copy a `JsPerspectiveView` to the clipboard as a CSV.
Copy a `JsPerspectiveView` to the clipboard as a CSV.
Copy a ` JsPerspectiveView ` to the clipboard as a CSV .
pub async fn copy(view: &View) -> Result<(), JsValue> {
    let csv_ref: Rc<RefCell<Option<String>>> = Rc::new(RefCell::new(None));
    poll(0, csv_ref.clone())?;
    let csv = copy_async(view).await?;
    *csv_ref.borrow_mut() = Some(csv.as_string().unwrap());
    Ok(())
}
pub async fn copy ( view : & View ) -> Result < ( ) , JsValue > { let csv_ref : Rc < RefCell < Option < String > > > = Rc :: new ( RefCell :: new ( None ) ) ; poll ( 0 , csv_ref . clone ( ) ) ? ; let csv = copy_async ( view ) . await ? ; * csv_ref . borrow_mut ( ) = Some ( csv . as_string ( ) . unwrap ( ) ) ; Ok ( ( ) ) }
Copy a `JsPerspectiveView` to the clipboard as a CSV.
Copy a ` JsPerspectiveView ` to the clipboard as a CSV .
view
&View