#[repr(transparent)]pub struct Bitset { /* private fields */ }
Implementations
sourceimpl Bitset
impl Bitset
pub fn new_empty() -> Bitset
pub fn new_range(start: u32, n_items: u32) -> Bitset
pub fn add(&self, value: u32) -> bool
pub fn add_range(&self, start: u32, n_items: u32)
pub fn add_range_closed(&self, first: u32, last: u32)
pub fn add_rectangle(&self, start: u32, width: u32, height: u32, stride: u32)
pub fn contains(&self, value: u32) -> bool
pub fn copy(&self) -> Bitset
pub fn difference(&self, other: &Bitset)
pub fn equals(&self, other: &Bitset) -> bool
pub fn maximum(&self) -> u32
pub fn minimum(&self) -> u32
pub fn nth(&self, nth: u32) -> u32
pub fn size(&self) -> u64
pub fn size_in_range(&self, first: u32, last: u32) -> u64
pub fn intersect(&self, other: &Bitset)
pub fn is_empty(&self) -> bool
pub fn remove(&self, value: u32) -> bool
pub fn remove_all(&self)
pub fn remove_range(&self, start: u32, n_items: u32)
pub fn remove_range_closed(&self, first: u32, last: u32)
pub fn remove_rectangle(&self, start: u32, width: u32, height: u32, stride: u32)
pub fn shift_left(&self, amount: u32)
pub fn shift_right(&self, amount: u32)
pub fn splice(&self, position: u32, removed: u32, added: u32)
pub fn subtract(&self, other: &Bitset)
pub fn union(&self, other: &Bitset)
Trait Implementations
sourceimpl Ord for Bitset
impl Ord for Bitset
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<Bitset> for Bitset
impl PartialEq<Bitset> for Bitset
sourceimpl PartialOrd<Bitset> for Bitset
impl PartialOrd<Bitset> for Bitset
sourcefn partial_cmp(&self, other: &Bitset) -> Option<Ordering>
fn partial_cmp(&self, other: &Bitset) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl StaticType for Bitset
impl StaticType for Bitset
sourcefn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of Self
.
impl Eq for Bitset
impl StructuralEq for Bitset
impl StructuralPartialEq for Bitset
Auto Trait Implementations
impl RefUnwindSafe for Bitset
impl !Send for Bitset
impl !Sync for Bitset
impl Unpin for Bitset
impl UnwindSafe for Bitset
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> StaticTypeExt for T where
T: StaticType,
impl<T> StaticTypeExt for T where
T: StaticType,
sourcefn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.