pub struct ObjectFlags(/* private fields */);Expand description
Flags that can be set on a heap-allocated object.
Implementations§
Source§impl ObjectFlags
impl ObjectFlags
Object is shared across threads (uses atomic RC).
Sourcepub fn has(&self, flag: ObjectFlags) -> bool
pub fn has(&self, flag: ObjectFlags) -> bool
Check if a specific flag is set.
Sourcepub fn set(&mut self, flag: ObjectFlags)
pub fn set(&mut self, flag: ObjectFlags)
Set a flag.
Sourcepub fn clear(&mut self, flag: ObjectFlags)
pub fn clear(&mut self, flag: ObjectFlags)
Clear a flag.
Trait Implementations§
Source§impl Clone for ObjectFlags
impl Clone for ObjectFlags
Source§fn clone(&self) -> ObjectFlags
fn clone(&self) -> ObjectFlags
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 ObjectFlags
impl Debug for ObjectFlags
Source§impl PartialEq for ObjectFlags
impl PartialEq for ObjectFlags
impl Copy for ObjectFlags
impl Eq for ObjectFlags
impl StructuralPartialEq for ObjectFlags
Auto Trait Implementations§
impl Freeze for ObjectFlags
impl RefUnwindSafe for ObjectFlags
impl Send for ObjectFlags
impl Sync for ObjectFlags
impl Unpin for ObjectFlags
impl UnsafeUnpin for ObjectFlags
impl UnwindSafe for ObjectFlags
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