Struct slint::StandardListViewItem
#[non_exhaustive]#[repr(C)]pub struct StandardListViewItem {
pub text: SharedString,
}
Expand description
Represents an item in a StandardListView and a StandardTableView. This is the Rust/C++ type for
the StandardListViewItem type in Slint files, when declaring for example a property <[StandardListViewItem]> my-list-view-model;
.
Fields (Non-exhaustive)ยง
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.text: SharedString
The text content of the item.
Trait Implementationsยง
ยงimpl Clone for StandardListViewItem
impl Clone for StandardListViewItem
ยงfn clone(&self) -> StandardListViewItem
fn clone(&self) -> StandardListViewItem
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 moreยงimpl Debug for StandardListViewItem
impl Debug for StandardListViewItem
ยงimpl Default for StandardListViewItem
impl Default for StandardListViewItem
ยงfn default() -> StandardListViewItem
fn default() -> StandardListViewItem
Returns the โdefault valueโ for a type. Read more
ยงimpl From<&str> for StandardListViewItem
impl From<&str> for StandardListViewItem
ยงfn from(value: &str) -> StandardListViewItem
fn from(value: &str) -> StandardListViewItem
Converts to this type from the input type.
ยงfn from(value: SharedString) -> StandardListViewItem
fn from(value: SharedString) -> StandardListViewItem
Converts to this type from the input type.
ยงimpl PartialEq<StandardListViewItem> for StandardListViewItem
impl PartialEq<StandardListViewItem> for StandardListViewItem
ยงfn eq(&self, other: &StandardListViewItem) -> bool
fn eq(&self, other: &StandardListViewItem) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for StandardListViewItem
Auto Trait Implementationsยง
impl RefUnwindSafe for StandardListViewItem
impl Send for StandardListViewItem
impl !Sync for StandardListViewItem
impl Unpin for StandardListViewItem
impl UnwindSafe for StandardListViewItem
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
ยงimpl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere T: Any,
ยงfn into_any(self: Box<T, Global>) -> Box<dyn Any, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any, Global>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.ยงfn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.ยงfn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
โs vtable from &Trait
โs.ยงfn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
โs vtable from &mut Trait
โs.sourceยงimpl<T> Instrument for T
impl<T> Instrument for T
sourceยงfn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourceยงfn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
ยงimpl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere T: Default,
type NoneType = T
ยงfn null_value() -> T
fn null_value() -> T
The none-equivalent value.
ยงimpl<T> Pointable for T
impl<T> Pointable for T
sourceยงimpl<R, P> ReadPrimitive<R> for Pwhere
R: Read + ReadEndian<P>,
P: Default,
impl<R, P> ReadPrimitive<R> for Pwhere R: Read + ReadEndian<P>, P: Default,
sourceยงfn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian()
.