pub struct Protection {
pub locked: bool,
pub hidden: bool,
}Expand description
Cell protection properties
Fields§
§locked: boolCell is locked
Cell is hidden
Implementations§
Source§impl Protection
impl Protection
Sourcepub fn with_locked(self, locked: bool) -> Self
pub fn with_locked(self, locked: bool) -> Self
Set locked
Set hidden
Trait Implementations§
Source§impl Clone for Protection
impl Clone for Protection
Source§fn clone(&self) -> Protection
fn clone(&self) -> Protection
Returns a duplicate of the value. Read more
1.0.0 · 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 Protection
impl Debug for Protection
Source§impl Default for Protection
impl Default for Protection
Source§fn default() -> Protection
fn default() -> Protection
Returns the “default value” for a type. Read more
Source§impl PartialEq for Protection
impl PartialEq for Protection
impl StructuralPartialEq for Protection
Auto Trait Implementations§
impl Freeze for Protection
impl RefUnwindSafe for Protection
impl Send for Protection
impl Sync for Protection
impl Unpin for Protection
impl UnsafeUnpin for Protection
impl UnwindSafe for Protection
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