pub struct Clipboard {
pub wb: Arc<Workbook>,
pub sheet: usize,
pub range: RangeRef,
pub selected: RangeRef,
pub cut: bool,
pub doc_uid: u64,
pub text: String,
pub areas: Vec<RangeRef>,
pub trust: Trust,
}Expand description
The clipboard: a block of cells (with formulas and styles) or marching-ants reference.
Fields§
§wb: Arc<Workbook>Source workbook snapshot, sheet and range.
sheet: usize§range: RangeRef§selected: RangeRefThe range as copied, before whole rows/columns were trimmed to the used range (Insert Copied Cells inserts whole lines for a row or column copy).
cut: bool§doc_uid: u64Document uid of the source (a cut only moves within the same workbook).
text: StringPlain text (tab-separated) for the system clipboard.
areas: Vec<RangeRef>A multi-area copy: the areas as selected (for the marquee). wb then holds them slid
together into one block at range. Empty for a single-range copy.
trust: TrustTrust of the source document: pasting content from a file someone else made carries it.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Clipboard
impl RefUnwindSafe for Clipboard
impl Send for Clipboard
impl Sync for Clipboard
impl Unpin for Clipboard
impl UnsafeUnpin for Clipboard
impl UnwindSafe for Clipboard
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more