#[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
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.
sourceimpl<T> ToClosureReturnValue for T where
T: ToValue,
impl<T> ToClosureReturnValue for T where
T: ToValue,
fn to_closure_return_value(&self) -> Option<Value>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more