Struct qmetaobject::QModelIndex
source · #[repr(C)]pub struct QModelIndex { /* private fields */ }
Expand description
Wrapper around QModelIndex
class.
Implementations§
Trait Implementations§
source§impl Clone for QModelIndex
impl Clone for QModelIndex
source§fn clone(&self) -> QModelIndex
fn clone(&self) -> QModelIndex
Returns a copy 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 moresource§impl Default for QModelIndex
impl Default for QModelIndex
source§fn default() -> QModelIndex
fn default() -> QModelIndex
Returns the “default value” for a type. Read more
source§impl PartialEq for QModelIndex
impl PartialEq for QModelIndex
source§fn eq(&self, other: &QModelIndex) -> bool
fn eq(&self, other: &QModelIndex) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl QMetaType for QModelIndex
impl QMetaType for QModelIndex
fn id() -> i32
source§fn to_qvariant(&self) -> QVariant
fn to_qvariant(&self) -> QVariant
Returns a QVariant containing a copy of this object
source§fn from_qvariant(variant: QVariant) -> Option<Self>
fn from_qvariant(variant: QVariant) -> Option<Self>
Attempt to convert from a QVariant to this type.
source§const CONVERSION_TO_STRING: Option<fn(_: &Self) -> QString> = None
const CONVERSION_TO_STRING: Option<fn(_: &Self) -> QString> = None
If this is set to a function, it enable the conversion to and from QString
const CONVERSION_FROM_STRING: Option<fn(_: &QString) -> Self> = None
impl Copy for QModelIndex
impl Eq for QModelIndex
impl StructuralEq for QModelIndex
Auto Trait Implementations§
impl RefUnwindSafe for QModelIndex
impl Send for QModelIndex
impl Sync for QModelIndex
impl Unpin for QModelIndex
impl UnwindSafe for QModelIndex
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