pub struct ActiveSheet(/* private fields */);Expand description
The active sheet index of a Workbook.
Every other part of a workbook value is immutable once shared (the engine keeps versions as
Arc<Workbook> and tells unsaved changes by pointer). The active sheet is the exception: it
is the view state of the window showing the workbook, and several windows on one workbook
swap their own sheet into it whenever one of them becomes the one commands act on. Keeping it
in an atomic lets that swap happen through the shared Arc without cloning the workbook.
Copies (undo versions, a cloned workbook) take the value at the time of the copy.
Implementations§
Trait Implementations§
Source§impl Clone for ActiveSheet
impl Clone for ActiveSheet
Source§fn clone(&self) -> ActiveSheet
fn clone(&self) -> ActiveSheet
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ActiveSheet
impl Debug for ActiveSheet
Source§impl Default for ActiveSheet
impl Default for ActiveSheet
Source§fn default() -> ActiveSheet
fn default() -> ActiveSheet
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ActiveSheet
impl<'de> Deserialize<'de> for ActiveSheet
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<ActiveSheet> for usize
impl From<ActiveSheet> for usize
Source§fn from(a: ActiveSheet) -> usize
fn from(a: ActiveSheet) -> usize
Converts to this type from the input type.
Source§impl From<usize> for ActiveSheet
impl From<usize> for ActiveSheet
Source§fn from(i: usize) -> ActiveSheet
fn from(i: usize) -> ActiveSheet
Converts to this type from the input type.
Source§impl PartialEq for ActiveSheet
impl PartialEq for ActiveSheet
Auto Trait Implementations§
impl !Freeze for ActiveSheet
impl RefUnwindSafe for ActiveSheet
impl Send for ActiveSheet
impl Sync for ActiveSheet
impl Unpin for ActiveSheet
impl UnsafeUnpin for ActiveSheet
impl UnwindSafe for ActiveSheet
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