pub struct ItemFlags(/* private fields */);
Expand description
Collection of flags attached to an Item - most of them are serializable and define specific properties of an associated Item, like:
- Has item been deleted?
- Is item countable (should its content add to the length/offset calculation of containing collection)?
- Should item be kept untouched eg. because it’s being tracked by UndoManager.
Implementations§
source§impl ItemFlags
impl ItemFlags
pub fn new(source: u16) -> Self
pub fn is_keep(&self) -> bool
pub fn set_keep(&mut self)
pub fn clear_keep(&mut self)
pub fn set_countable(&mut self)
pub fn clear_countable(&mut self)
pub fn is_countable(&self) -> bool
pub fn set_deleted(&mut self)
pub fn is_deleted(&self) -> bool
pub fn is_marked(&self) -> bool
pub fn is_linked(&self) -> bool
pub fn set_linked(&mut self)
pub fn clear_linked(&mut self)
Trait Implementations§
source§impl PartialEq for ItemFlags
impl PartialEq for ItemFlags
impl Copy for ItemFlags
impl Eq for ItemFlags
impl StructuralPartialEq for ItemFlags
Auto Trait Implementations§
impl Freeze for ItemFlags
impl RefUnwindSafe for ItemFlags
impl Send for ItemFlags
impl Sync for ItemFlags
impl Unpin for ItemFlags
impl UnwindSafe for ItemFlags
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