Trait QListElement

Source
pub trait QListElement: Sized {
    type TypeId;

Show 14 methods // Required methods fn append(list: &mut QList<Self>, value: Self) where Self: ExternType<Kind = Trivial>; 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>); unsafe fn get_unchecked(list: &QList<Self>, pos: isize) -> &Self; fn index_of(list: &QList<Self>, value: &Self) -> isize; fn insert(list: &mut QList<Self>, pos: isize, value: Self) where Self: ExternType<Kind = Trivial>; 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(vector: &mut QList<Self>, size: isize);
}
Expand description

Trait implementation for an element in a QList.

Required Associated Types§

Required Methods§

Source

fn append(list: &mut QList<Self>, value: Self)
where Self: ExternType<Kind = Trivial>,

Source

fn append_clone(list: &mut QList<Self>, value: &Self)

Source

fn clear(list: &mut QList<Self>)

Source

fn clone(list: &QList<Self>) -> QList<Self>

Source

fn contains(list: &QList<Self>, value: &Self) -> bool

Source

fn default() -> QList<Self>

Source

fn drop(list: &mut QList<Self>)

Source

unsafe fn get_unchecked(list: &QList<Self>, pos: isize) -> &Self

§Safety

Calling this method with an out-of-bounds index is undefined behavior even if the resulting reference is not used.

Source

fn index_of(list: &QList<Self>, value: &Self) -> isize

Source

fn insert(list: &mut QList<Self>, pos: isize, value: Self)
where Self: ExternType<Kind = Trivial>,

Source

fn insert_clone(list: &mut QList<Self>, pos: isize, value: &Self)

Source

fn len(list: &QList<Self>) -> isize

Source

fn remove(list: &mut QList<Self>, pos: isize)

Source

fn reserve(vector: &mut QList<Self>, size: isize)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl QListElement for bool

Source§

type TypeId = (Q, L, i, s, t, __, b, o, o, l)

Source§

fn append(list: &mut QList<Self>, value: Self)

Source§

fn append_clone(list: &mut QList<Self>, value: &Self)

Source§

fn clear(list: &mut QList<Self>)

Source§

fn clone(list: &QList<Self>) -> QList<Self>

Source§

fn contains(list: &QList<Self>, value: &Self) -> bool

Source§

fn default() -> QList<Self>

Source§

fn drop(list: &mut QList<Self>)

Source§

unsafe fn get_unchecked(list: &QList<Self>, pos: isize) -> &Self

Source§

fn index_of(list: &QList<Self>, value: &Self) -> isize

Source§

fn insert(list: &mut QList<Self>, pos: isize, value: Self)

Source§

fn insert_clone(list: &mut QList<Self>, pos: isize, value: &Self)

Source§

fn len(list: &QList<Self>) -> isize

Source§

fn remove(list: &mut QList<Self>, pos: isize)

Source§

fn reserve(list: &mut QList<Self>, size: isize)

Source§

impl QListElement for f32

Source§

type TypeId = (Q, L, i, s, t, __, f, _3, _2)

Source§

fn append(list: &mut QList<Self>, value: Self)

Source§

fn append_clone(list: &mut QList<Self>, value: &Self)

Source§

fn clear(list: &mut QList<Self>)

Source§

fn clone(list: &QList<Self>) -> QList<Self>

Source§

fn contains(list: &QList<Self>, value: &Self) -> bool

Source§

fn default() -> QList<Self>

Source§

fn drop(list: &mut QList<Self>)

Source§

unsafe fn get_unchecked(list: &QList<Self>, pos: isize) -> &Self

Source§

fn index_of(list: &QList<Self>, value: &Self) -> isize

Source§

fn insert(list: &mut QList<Self>, pos: isize, value: Self)

Source§

fn insert_clone(list: &mut QList<Self>, pos: isize, value: &Self)

Source§

fn len(list: &QList<Self>) -> isize

Source§

fn remove(list: &mut QList<Self>, pos: isize)

Source§

fn reserve(list: &mut QList<Self>, size: isize)

Source§

impl QListElement for f64

Source§

type TypeId = (Q, L, i, s, t, __, f, _6, _4)

Source§

fn append(list: &mut QList<Self>, value: Self)

Source§

fn append_clone(list: &mut QList<Self>, value: &Self)

Source§

fn clear(list: &mut QList<Self>)

Source§

fn clone(list: &QList<Self>) -> QList<Self>

Source§

fn contains(list: &QList<Self>, value: &Self) -> bool

Source§

fn default() -> QList<Self>

Source§

fn drop(list: &mut QList<Self>)

Source§

unsafe fn get_unchecked(list: &QList<Self>, pos: isize) -> &Self

Source§

fn index_of(list: &QList<Self>, value: &Self) -> isize

Source§

fn insert(list: &mut QList<Self>, pos: isize, value: Self)

Source§

fn insert_clone(list: &mut QList<Self>, pos: isize, value: &Self)

Source§

fn len(list: &QList<Self>) -> isize

Source§

fn remove(list: &mut QList<Self>, pos: isize)

Source§

fn reserve(list: &mut QList<Self>, size: isize)

Source§

impl QListElement for i8

Source§

type TypeId = (Q, L, i, s, t, __, i, _8)

Source§

fn append(list: &mut QList<Self>, value: Self)

Source§

fn append_clone(list: &mut QList<Self>, value: &Self)

Source§

fn clear(list: &mut QList<Self>)

Source§

fn clone(list: &QList<Self>) -> QList<Self>

Source§

fn contains(list: &QList<Self>, value: &Self) -> bool

Source§

fn default() -> QList<Self>

Source§

fn drop(list: &mut QList<Self>)

Source§

unsafe fn get_unchecked(list: &QList<Self>, pos: isize) -> &Self

Source§

fn index_of(list: &QList<Self>, value: &Self) -> isize

Source§

fn insert(list: &mut QList<Self>, pos: isize, value: Self)

Source§

fn insert_clone(list: &mut QList<Self>, pos: isize, value: &Self)

Source§

fn len(list: &QList<Self>) -> isize

Source§

fn remove(list: &mut QList<Self>, pos: isize)

Source§

fn reserve(list: &mut QList<Self>, size: isize)

Source§

impl QListElement for i16

Source§

type TypeId = (Q, L, i, s, t, __, i, _1, _6)

Source§

fn append(list: &mut QList<Self>, value: Self)

Source§

fn append_clone(list: &mut QList<Self>, value: &Self)

Source§

fn clear(list: &mut QList<Self>)

Source§

fn clone(list: &QList<Self>) -> QList<Self>

Source§

fn contains(list: &QList<Self>, value: &Self) -> bool

Source§

fn default() -> QList<Self>

Source§

fn drop(list: &mut QList<Self>)

Source§

unsafe fn get_unchecked(list: &QList<Self>, pos: isize) -> &Self

Source§

fn index_of(list: &QList<Self>, value: &Self) -> isize

Source§

fn insert(list: &mut QList<Self>, pos: isize, value: Self)

Source§

fn insert_clone(list: &mut QList<Self>, pos: isize, value: &Self)

Source§

fn len(list: &QList<Self>) -> isize

Source§

fn remove(list: &mut QList<Self>, pos: isize)

Source§

fn reserve(list: &mut QList<Self>, size: isize)

Source§

impl QListElement for i32

Source§

type TypeId = (Q, L, i, s, t, __, i, _3, _2)

Source§

fn append(list: &mut QList<Self>, value: Self)

Source§

fn append_clone(list: &mut QList<Self>, value: &Self)

Source§

fn clear(list: &mut QList<Self>)

Source§

fn clone(list: &QList<Self>) -> QList<Self>

Source§

fn contains(list: &QList<Self>, value: &Self) -> bool

Source§

fn default() -> QList<Self>

Source§

fn drop(list: &mut QList<Self>)

Source§

unsafe fn get_unchecked(list: &QList<Self>, pos: isize) -> &Self

Source§

fn index_of(list: &QList<Self>, value: &Self) -> isize

Source§

fn insert(list: &mut QList<Self>, pos: isize, value: Self)

Source§

fn insert_clone(list: &mut QList<Self>, pos: isize, value: &Self)

Source§

fn len(list: &QList<Self>) -> isize

Source§

fn remove(list: &mut QList<Self>, pos: isize)

Source§

fn reserve(list: &mut QList<Self>, size: isize)

Source§

impl QListElement for i64

Source§

type TypeId = (Q, L, i, s, t, __, i, _6, _4)

Source§

fn append(list: &mut QList<Self>, value: Self)

Source§

fn append_clone(list: &mut QList<Self>, value: &Self)

Source§

fn clear(list: &mut QList<Self>)

Source§

fn clone(list: &QList<Self>) -> QList<Self>

Source§

fn contains(list: &QList<Self>, value: &Self) -> bool

Source§

fn default() -> QList<Self>

Source§

fn drop(list: &mut QList<Self>)

Source§

unsafe fn get_unchecked(list: &QList<Self>, pos: isize) -> &Self

Source§

fn index_of(list: &QList<Self>, value: &Self) -> isize

Source§

fn insert(list: &mut QList<Self>, pos: isize, value: Self)

Source§

fn insert_clone(list: &mut QList<Self>, pos: isize, value: &Self)

Source§

fn len(list: &QList<Self>) -> isize

Source§

fn remove(list: &mut QList<Self>, pos: isize)

Source§

fn reserve(list: &mut QList<Self>, size: isize)

Source§

impl QListElement for u8

Source§

type TypeId = (Q, L, i, s, t, __, u, _8)

Source§

fn append(list: &mut QList<Self>, value: Self)

Source§

fn append_clone(list: &mut QList<Self>, value: &Self)

Source§

fn clear(list: &mut QList<Self>)

Source§

fn clone(list: &QList<Self>) -> QList<Self>

Source§

fn contains(list: &QList<Self>, value: &Self) -> bool

Source§

fn default() -> QList<Self>

Source§

fn drop(list: &mut QList<Self>)

Source§

unsafe fn get_unchecked(list: &QList<Self>, pos: isize) -> &Self

Source§

fn index_of(list: &QList<Self>, value: &Self) -> isize

Source§

fn insert(list: &mut QList<Self>, pos: isize, value: Self)

Source§

fn insert_clone(list: &mut QList<Self>, pos: isize, value: &Self)

Source§

fn len(list: &QList<Self>) -> isize

Source§

fn remove(list: &mut QList<Self>, pos: isize)

Source§

fn reserve(list: &mut QList<Self>, size: isize)

Source§

impl QListElement for u16

Source§

type TypeId = (Q, L, i, s, t, __, u, _1, _6)

Source§

fn append(list: &mut QList<Self>, value: Self)

Source§

fn append_clone(list: &mut QList<Self>, value: &Self)

Source§

fn clear(list: &mut QList<Self>)

Source§

fn clone(list: &QList<Self>) -> QList<Self>

Source§

fn contains(list: &QList<Self>, value: &Self) -> bool

Source§

fn default() -> QList<Self>

Source§

fn drop(list: &mut QList<Self>)

Source§

unsafe fn get_unchecked(list: &QList<Self>, pos: isize) -> &Self

Source§

fn index_of(list: &QList<Self>, value: &Self) -> isize

Source§

fn insert(list: &mut QList<Self>, pos: isize, value: Self)

Source§

fn insert_clone(list: &mut QList<Self>, pos: isize, value: &Self)

Source§

fn len(list: &QList<Self>) -> isize

Source§

fn remove(list: &mut QList<Self>, pos: isize)

Source§

fn reserve(list: &mut QList<Self>, size: isize)

Source§

impl QListElement for u32

Source§

type TypeId = (Q, L, i, s, t, __, u, _3, _2)

Source§

fn append(list: &mut QList<Self>, value: Self)

Source§

fn append_clone(list: &mut QList<Self>, value: &Self)

Source§

fn clear(list: &mut QList<Self>)

Source§

fn clone(list: &QList<Self>) -> QList<Self>

Source§

fn contains(list: &QList<Self>, value: &Self) -> bool

Source§

fn default() -> QList<Self>

Source§

fn drop(list: &mut QList<Self>)

Source§

unsafe fn get_unchecked(list: &QList<Self>, pos: isize) -> &Self

Source§

fn index_of(list: &QList<Self>, value: &Self) -> isize

Source§

fn insert(list: &mut QList<Self>, pos: isize, value: Self)

Source§

fn insert_clone(list: &mut QList<Self>, pos: isize, value: &Self)

Source§

fn len(list: &QList<Self>) -> isize

Source§

fn remove(list: &mut QList<Self>, pos: isize)

Source§

fn reserve(list: &mut QList<Self>, size: isize)

Source§

impl QListElement for u64

Source§

type TypeId = (Q, L, i, s, t, __, u, _6, _4)

Source§

fn append(list: &mut QList<Self>, value: Self)

Source§

fn append_clone(list: &mut QList<Self>, value: &Self)

Source§

fn clear(list: &mut QList<Self>)

Source§

fn clone(list: &QList<Self>) -> QList<Self>

Source§

fn contains(list: &QList<Self>, value: &Self) -> bool

Source§

fn default() -> QList<Self>

Source§

fn drop(list: &mut QList<Self>)

Source§

unsafe fn get_unchecked(list: &QList<Self>, pos: isize) -> &Self

Source§

fn index_of(list: &QList<Self>, value: &Self) -> isize

Source§

fn insert(list: &mut QList<Self>, pos: isize, value: Self)

Source§

fn insert_clone(list: &mut QList<Self>, pos: isize, value: &Self)

Source§

fn len(list: &QList<Self>) -> isize

Source§

fn remove(list: &mut QList<Self>, pos: isize)

Source§

fn reserve(list: &mut QList<Self>, size: isize)

Implementors§

Source§

impl QListElement for QByteArray

Source§

type TypeId = (Q, L, i, s, t, __, Q, B, y, t, e, A, r, r, a, y)

Source§

impl QListElement for QDate

Source§

type TypeId = (Q, L, i, s, t, __, Q, D, a, t, e)

Source§

impl QListElement for QDateTime

Source§

type TypeId = (Q, L, i, s, t, __, Q, D, a, t, e, T, i, m, e)

Source§

impl QListElement for QLine

Source§

type TypeId = (Q, L, i, s, t, __, Q, L, i, n, e)

Source§

impl QListElement for QLineF

Source§

type TypeId = (Q, L, i, s, t, __, Q, L, i, n, e, F)

Source§

impl QListElement for QMargins

Source§

type TypeId = (Q, L, i, s, t, __, Q, M, a, r, g, i, n, s)

Source§

impl QListElement for QMarginsF

Source§

type TypeId = (Q, L, i, s, t, __, Q, M, a, r, g, i, n, s, F)

Source§

impl QListElement for QPersistentModelIndex

Source§

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)

Source§

impl QListElement for QPoint

Source§

type TypeId = (Q, L, i, s, t, __, Q, P, o, i, n, t)

Source§

impl QListElement for QPointF

Source§

type TypeId = (Q, L, i, s, t, __, Q, P, o, i, n, t, F)

Source§

impl QListElement for QRect

Source§

type TypeId = (Q, L, i, s, t, __, Q, R, e, c, t)

Source§

impl QListElement for QRectF

Source§

type TypeId = (Q, L, i, s, t, __, Q, R, e, c, t, F)

Source§

impl QListElement for QSize

Source§

type TypeId = (Q, L, i, s, t, __, Q, S, i, z, e)

Source§

impl QListElement for QSizeF

Source§

type TypeId = (Q, L, i, s, t, __, Q, S, i, z, e, F)

Source§

impl QListElement for QString

Source§

type TypeId = (Q, L, i, s, t, __, Q, S, t, r, i, n, g)

Source§

impl QListElement for QTime

Source§

type TypeId = (Q, L, i, s, t, __, Q, T, i, m, e)

Source§

impl QListElement for QUrl

Source§

type TypeId = (Q, L, i, s, t, __, Q, U, r, l)

Source§

impl QListElement for QVariant

Source§

type TypeId = (Q, L, i, s, t, __, Q, V, a, r, i, a, n, t)