Struct cxx_qt_lib::QPersistentModelIndex
source · #[repr(C)]pub struct QPersistentModelIndex { /* private fields */ }
Expand description
The QPersistentModelIndex class is used to locate data in a data model.
Implementations§
source§impl QPersistentModelIndex
impl QPersistentModelIndex
sourcepub fn parent(&self) -> QModelIndex
pub fn parent(&self) -> QModelIndex
Returns the parent QModelIndex for this persistent index, or an invalid QModelIndex if it has no parent.
source§impl QPersistentModelIndex
impl QPersistentModelIndex
sourcepub fn sibling(&self, row: i32, column: i32) -> QModelIndex
pub fn sibling(&self, row: i32, column: i32) -> QModelIndex
Returns the sibling at row and column or an invalid QModelIndex if there is no sibling at this position.
Trait Implementations§
source§impl Clone for QPersistentModelIndex
impl Clone for QPersistentModelIndex
source§impl Debug for QPersistentModelIndex
impl Debug for QPersistentModelIndex
source§impl Display for QPersistentModelIndex
impl Display for QPersistentModelIndex
source§impl Drop for QPersistentModelIndex
impl Drop for QPersistentModelIndex
source§impl ExternType for QPersistentModelIndex
impl ExternType for QPersistentModelIndex
source§impl From<&QModelIndex> for QPersistentModelIndex
impl From<&QModelIndex> for QPersistentModelIndex
source§fn from(index: &QModelIndex) -> Self
fn from(index: &QModelIndex) -> Self
Creates a new QPersistentModelIndex that is a copy of the model index.
source§impl PartialEq for QPersistentModelIndex
impl PartialEq for QPersistentModelIndex
source§impl QListElement for QPersistentModelIndex
impl QListElement for QPersistentModelIndex
type TypeId = (Q, L, i, s, t, __, Q, P, e, r, s, i, s, t, e, n, t, M, o, d, e, l, I, n, d, e, x)
fn append(list: &mut QList<Self>, value: Self)
fn append_clone(list: &mut QList<Self>, value: &Self)
fn clear(list: &mut QList<Self>)
fn clone(list: &QList<Self>) -> QList<Self>
fn contains(list: &QList<Self>, value: &Self) -> bool
fn default() -> QList<Self>
fn drop(list: &mut QList<Self>)
fn index_of(list: &QList<Self>, value: &Self) -> isize
fn insert(list: &mut QList<Self>, pos: isize, value: Self)
fn insert_clone(list: &mut QList<Self>, pos: isize, value: &Self)
fn len(list: &QList<Self>) -> isize
fn remove(list: &mut QList<Self>, pos: isize)
fn reserve(list: &mut QList<Self>, size: isize)
source§impl QSetElement for QPersistentModelIndex
impl QSetElement for QPersistentModelIndex
type TypeId = (Q, S, e, t, __, Q, P, e, r, s, i, s, t, e, n, t, M, o, d, e, l, I, n, d, e, x)
fn clear(set: &mut QSet<Self>)
fn clone(set: &QSet<Self>) -> QSet<Self>
fn contains(set: &QSet<Self>, value: &Self) -> bool
fn default() -> QSet<Self>
fn drop(set: &mut QSet<Self>)
fn insert(set: &mut QSet<Self>, value: Self)
fn insert_clone(set: &mut QSet<Self>, value: &Self)
fn len(set: &QSet<Self>) -> isize
fn remove(set: &mut QSet<Self>, value: &Self) -> bool
source§impl QVectorElement for QPersistentModelIndex
impl QVectorElement for QPersistentModelIndex
type TypeId = (Q, V, e, c, t, o, r, __, Q, P, e, r, s, i, s, t, e, n, t, M, o, d, e, l, I, n, d, e, x)
fn append(vector: &mut QVector<Self>, value: Self)
fn append_clone(vector: &mut QVector<Self>, value: &Self)
fn clear(vector: &mut QVector<Self>)
fn clone(vector: &QVector<Self>) -> QVector<Self>
fn contains(vector: &QVector<Self>, value: &Self) -> bool
fn default() -> QVector<Self>
fn drop(vector: &mut QVector<Self>)
fn index_of(vector: &QVector<Self>, value: &Self) -> isize
fn insert(vector: &mut QVector<Self>, pos: isize, value: Self)
fn insert_clone(vector: &mut QVector<Self>, pos: isize, value: &Self)
fn len(vector: &QVector<Self>) -> isize
fn remove(vector: &mut QVector<Self>, pos: isize)
fn reserve(vector: &mut QVector<Self>, size: isize)
impl Eq for QPersistentModelIndex
Auto Trait Implementations§
impl Freeze for QPersistentModelIndex
impl RefUnwindSafe for QPersistentModelIndex
impl Send for QPersistentModelIndex
impl Sync for QPersistentModelIndex
impl Unpin for QPersistentModelIndex
impl UnwindSafe for QPersistentModelIndex
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