Skip to main content

QBitArray

Struct QBitArray 

Source
pub struct QBitArray { /* private fields */ }
Expand description

C++ class: QBitArray.

Implementations§

Source§

impl QBitArray

Source

pub unsafe fn at(&self, i: c_int) -> bool

Calls C++ function: bool QBitArray::at(int i) const.

Source

pub unsafe fn bit_and_assign( &self, arg1: impl CastInto<Ref<QBitArray>>, ) -> Ref<QBitArray>

Calls C++ function: QBitArray& QBitArray::operator&=(const QBitArray& arg1).

Source

pub unsafe fn bit_not(&self) -> CppBox<QBitArray>

Calls C++ function: QBitArray QBitArray::operator~() const.

Source

pub unsafe fn bit_or_assign( &self, arg1: impl CastInto<Ref<QBitArray>>, ) -> Ref<QBitArray>

Calls C++ function: QBitArray& QBitArray::operator|=(const QBitArray& arg1).

Source

pub unsafe fn bit_xor_assign( &self, arg1: impl CastInto<Ref<QBitArray>>, ) -> Ref<QBitArray>

Calls C++ function: QBitArray& QBitArray::operator^=(const QBitArray& arg1).

Source

pub unsafe fn bits(&self) -> *const c_char

Calls C++ function: const char* QBitArray::bits() const.

Source

pub unsafe fn clear(&self)

Calls C++ function: void QBitArray::clear().

Source

pub unsafe fn clear_bit(&self, i: c_int)

Calls C++ function: void QBitArray::clearBit(int i).

Source

pub unsafe fn copy_from( &self, other: impl CastInto<Ref<QBitArray>>, ) -> Ref<QBitArray>

Calls C++ function: QBitArray& QBitArray::operator=(const QBitArray& other).

Source

pub unsafe fn count_0a(&self) -> c_int

Calls C++ function: int QBitArray::count() const.

Source

pub unsafe fn count_1a(&self, on: bool) -> c_int

Calls C++ function: int QBitArray::count(bool on) const.

Source

pub unsafe fn detach(&self)

Calls C++ function: void QBitArray::detach().

Source

pub unsafe fn fill_2a(&self, val: bool, size: c_int) -> bool

Calls C++ function: bool QBitArray::fill(bool val, int size = …).

Source

pub unsafe fn fill_3a(&self, val: bool, first: c_int, last: c_int)

Calls C++ function: void QBitArray::fill(bool val, int first, int last).

Source

pub unsafe fn fill_1a(&self, val: bool) -> bool

Calls C++ function: bool QBitArray::fill(bool val).

Source

pub unsafe fn from_bits( data: *const c_char, len: c_longlong, ) -> CppBox<QBitArray>

Calls C++ function: static QBitArray QBitArray::fromBits(const char* data, long long len).

Source

pub unsafe fn index_int_mut(&self, i: c_int) -> CppBox<QBitRef>

Calls C++ function: QBitRef QBitArray::operator[](int i).

Source

pub unsafe fn index_int(&self, i: c_int) -> bool

Calls C++ function: bool QBitArray::operator[](int i) const.

Source

pub unsafe fn index_uint_mut(&self, i: c_uint) -> CppBox<QBitRef>

Calls C++ function: QBitRef QBitArray::operator[](unsigned int i).

Source

pub unsafe fn index_uint(&self, i: c_uint) -> bool

Calls C++ function: bool QBitArray::operator[](unsigned int i) const.

Source

pub unsafe fn is_detached(&self) -> bool

Calls C++ function: bool QBitArray::isDetached() const.

Source

pub unsafe fn is_empty(&self) -> bool

Calls C++ function: bool QBitArray::isEmpty() const.

Source

pub unsafe fn is_null(&self) -> bool

Calls C++ function: bool QBitArray::isNull() const.

Source

pub unsafe fn new_0a() -> CppBox<QBitArray>

Calls C++ function: [constructor] void QBitArray::QBitArray().

Source

pub unsafe fn new_2a(size: c_int, val: bool) -> CppBox<QBitArray>

Calls C++ function: [constructor] void QBitArray::QBitArray(int size, bool val = …).

Source

pub unsafe fn new_1a(size: c_int) -> CppBox<QBitArray>

Calls C++ function: [constructor] void QBitArray::QBitArray(int size).

Source

pub unsafe fn new_copy( other: impl CastInto<Ref<QBitArray>>, ) -> CppBox<QBitArray>

Calls C++ function: [constructor] void QBitArray::QBitArray(const QBitArray& other).

Source

pub unsafe fn resize(&self, size: c_int)

Calls C++ function: void QBitArray::resize(int size).

Source

pub unsafe fn set_bit_1a(&self, i: c_int)

Calls C++ function: void QBitArray::setBit(int i).

Source

pub unsafe fn set_bit_2a(&self, i: c_int, val: bool)

Calls C++ function: void QBitArray::setBit(int i, bool val).

Source

pub unsafe fn size(&self) -> c_int

Calls C++ function: int QBitArray::size() const.

Source

pub unsafe fn swap(&self, other: impl CastInto<Ref<QBitArray>>)

Calls C++ function: void QBitArray::swap(QBitArray& other).

Source

pub unsafe fn test_bit(&self, i: c_int) -> bool

Calls C++ function: bool QBitArray::testBit(int i) const.

Source

pub unsafe fn toggle_bit(&self, i: c_int) -> bool

Calls C++ function: bool QBitArray::toggleBit(int i).

Source

pub unsafe fn truncate(&self, pos: c_int)

Calls C++ function: void QBitArray::truncate(int pos).

Trait Implementations§

Source§

impl BitAnd<Ref<QBitArray>> for &QBitArray

Source§

fn bitand(self, arg2: Ref<QBitArray>) -> CppBox<QBitArray>

Calls C++ function: QBitArray operator&(const QBitArray& arg1, const QBitArray& arg2).

Source§

type Output = CppBox<QBitArray>

The resulting type after applying the & operator.
Source§

impl BitOr<Ref<QBitArray>> for &QBitArray

Source§

fn bitor(self, arg2: Ref<QBitArray>) -> CppBox<QBitArray>

Calls C++ function: QBitArray operator|(const QBitArray& arg1, const QBitArray& arg2).

Source§

type Output = CppBox<QBitArray>

The resulting type after applying the | operator.
Source§

impl BitXor<Ref<QBitArray>> for &QBitArray

Source§

fn bitxor(self, arg2: Ref<QBitArray>) -> CppBox<QBitArray>

Calls C++ function: QBitArray operator^(const QBitArray& arg1, const QBitArray& arg2).

Source§

type Output = CppBox<QBitArray>

The resulting type after applying the ^ operator.
Source§

impl CppDeletable for QBitArray

Source§

unsafe fn delete(&self)

Calls C++ function: [destructor] void QBitArray::~QBitArray().

Source§

impl PartialEq<Ref<QBitArray>> for QBitArray

Source§

fn eq(&self, other: &Ref<QBitArray>) -> bool

Calls C++ function: bool QBitArray::operator==(const QBitArray& other) const.

1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Size for QBitArray

Source§

unsafe fn size(&self) -> usize

Calls C++ function: int QBitArray::size() const.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T, U> CastInto<U> for T
where U: CastFrom<T>,

Source§

unsafe fn cast_into(self) -> U

Performs the conversion. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> StaticUpcast<T> for T

Source§

unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>

Convert type of a const pointer. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.