Struct PropertyIdSet
pub struct PropertyIdSet(u64);Expand description
A set of property ids.
Tuple Fields§
§0: u64Implementations§
§impl PropertyIdSet
impl PropertyIdSet
pub const ALL: Self
pub const ALL: Self
A set containing all property ids.
pub const fn new() -> Self
pub const fn new() -> Self
Creates a new empty set of property ids.
pub const fn from_slice(ids: &[PropertyId]) -> Self
pub const fn from_slice(ids: &[PropertyId]) -> Self
Creates a new set from a slice of property ids.
pub const fn insert(&mut self, id: PropertyId)
pub const fn insert(&mut self, id: PropertyId)
Inserts a property id into the set.
pub const fn remove(&mut self, id: PropertyId) -> bool
pub const fn remove(&mut self, id: PropertyId) -> bool
Removes a property id from the set, returning true if it was present.
pub const fn contains(self, id: PropertyId) -> bool
pub const fn contains(self, id: PropertyId) -> bool
Returns true if the set contains the given property id.
pub const fn iter(self) -> PropertyIdSetIter ⓘ
pub const fn iter(self) -> PropertyIdSetIter ⓘ
Returns an iterator over the property ids in the set.
The order of the yielded property ids is not specified.
Trait Implementations§
§impl Clone for PropertyIdSet
impl Clone for PropertyIdSet
§fn clone(&self) -> PropertyIdSet
fn clone(&self) -> PropertyIdSet
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 more§impl Debug for PropertyIdSet
impl Debug for PropertyIdSet
§impl Default for PropertyIdSet
impl Default for PropertyIdSet
§fn default() -> PropertyIdSet
fn default() -> PropertyIdSet
Returns the “default value” for a type. Read more
§impl Hash for PropertyIdSet
impl Hash for PropertyIdSet
§impl IntoIterator for PropertyIdSet
impl IntoIterator for PropertyIdSet
§type Item = PropertyId
type Item = PropertyId
The type of the elements being iterated over.
§type IntoIter = PropertyIdSetIter
type IntoIter = PropertyIdSetIter
Which kind of iterator are we turning this into?
§impl Ord for PropertyIdSet
impl Ord for PropertyIdSet
§impl PartialEq for PropertyIdSet
impl PartialEq for PropertyIdSet
§impl PartialOrd for PropertyIdSet
impl PartialOrd for PropertyIdSet
impl Copy for PropertyIdSet
impl Eq for PropertyIdSet
impl StructuralPartialEq for PropertyIdSet
Auto Trait Implementations§
impl Freeze for PropertyIdSet
impl RefUnwindSafe for PropertyIdSet
impl Send for PropertyIdSet
impl Sync for PropertyIdSet
impl Unpin for PropertyIdSet
impl UnwindSafe for PropertyIdSet
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