pub struct DataViewItemIsOwned<const OWNED: bool>(/* private fields */);
Expand description
wxDataViewItem is a small opaque class that represents an item in a wxDataViewCtrl in a persistent way, i.e.
DataViewItem
represents a C++wxDataViewItem
class instance which your code has ownership,DataViewItemIsOwned
<false>
represents one which don’t own.- Use
DataViewItem
’snew()
orBuildable::builder()
(if available) to create an instance of this class. - See C++
wxDataViewItem
class’s documentation for more details.
Implementations§
Source§impl<const OWNED: bool> DataViewItemIsOwned<OWNED>
impl<const OWNED: bool> DataViewItemIsOwned<OWNED>
Sourcepub fn new() -> DataViewItemIsOwned<OWNED>
pub fn new() -> DataViewItemIsOwned<OWNED>
Constructor.
Sourcepub fn new_with_dataviewitem<D: DataViewItemMethods>(
item: &D,
) -> DataViewItemIsOwned<OWNED>
pub fn new_with_dataviewitem<D: DataViewItemMethods>( item: &D, ) -> DataViewItemIsOwned<OWNED>
Sourcepub fn new_with_void(id: *mut c_void) -> DataViewItemIsOwned<OWNED>
pub fn new_with_void(id: *mut c_void) -> DataViewItemIsOwned<OWNED>
pub fn none() -> Option<&'static Self>
Trait Implementations§
Source§impl Clone for DataViewItemIsOwned<false>
impl Clone for DataViewItemIsOwned<false>
Source§impl<const OWNED: bool> DataViewItemMethods for DataViewItemIsOwned<OWNED>
impl<const OWNED: bool> DataViewItemMethods for DataViewItemIsOwned<OWNED>
Source§impl<const OWNED: bool> Drop for DataViewItemIsOwned<OWNED>
impl<const OWNED: bool> Drop for DataViewItemIsOwned<OWNED>
Source§impl<const OWNED: bool> WxRustMethods for DataViewItemIsOwned<OWNED>
impl<const OWNED: bool> WxRustMethods for DataViewItemIsOwned<OWNED>
type Unowned = DataViewItemIsOwned<false>
unsafe fn as_ptr(&self) -> *mut c_void
unsafe fn from_ptr(ptr: *mut c_void) -> Self
unsafe fn from_unowned_ptr(ptr: *mut c_void) -> Self::Unowned
unsafe fn with_ptr<F: Fn(&Self)>(ptr: *mut c_void, closure: F)
unsafe fn option_from(ptr: *mut c_void) -> Option<Self::Unowned>where
Self: Sized,
Auto Trait Implementations§
impl<const OWNED: bool> Freeze for DataViewItemIsOwned<OWNED>
impl<const OWNED: bool> RefUnwindSafe for DataViewItemIsOwned<OWNED>
impl<const OWNED: bool> !Send for DataViewItemIsOwned<OWNED>
impl<const OWNED: bool> !Sync for DataViewItemIsOwned<OWNED>
impl<const OWNED: bool> Unpin for DataViewItemIsOwned<OWNED>
impl<const OWNED: bool> UnwindSafe for DataViewItemIsOwned<OWNED>
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