Struct makepad_widgets::shader::std::windows::Foundation::Collections::IObservableVector
#[repr(transparent)]pub struct IObservableVector<T>(/* private fields */)
where
T: RuntimeType + 'static;Expand description
Required features: "Foundation_Collections"
Implementations§
§impl<T> IObservableVector<T>where
T: RuntimeType + 'static,
impl<T> IObservableVector<T>where T: RuntimeType + 'static,
pub fn VectorChanged<P0>( &self, vhnd: P0 ) -> Result<EventRegistrationToken, Error>where P0: IntoParam<VectorChangedEventHandler<T>, <VectorChangedEventHandler<T> as TypeKind>::TypeKind>,
pub fn RemoveVectorChanged( &self, token: EventRegistrationToken ) -> Result<(), Error>
pub fn First(&self) -> Result<IIterator<T>, Error>
pub fn GetAt(&self, index: u32) -> Result<T, Error>
pub fn Size(&self) -> Result<u32, Error>
pub fn GetView(&self) -> Result<IVectorView<T>, Error>
pub fn IndexOf<P0>(&self, value: P0, index: &mut u32) -> Result<bool, Error>where P0: IntoParam<T, <T as TypeKind>::TypeKind>,
pub fn SetAt<P0>(&self, index: u32, value: P0) -> Result<(), Error>where P0: IntoParam<T, <T as TypeKind>::TypeKind>,
pub fn InsertAt<P0>(&self, index: u32, value: P0) -> Result<(), Error>where P0: IntoParam<T, <T as TypeKind>::TypeKind>,
pub fn RemoveAt(&self, index: u32) -> Result<(), Error>
pub fn Append<P0>(&self, value: P0) -> Result<(), Error>where P0: IntoParam<T, <T as TypeKind>::TypeKind>,
pub fn RemoveAtEnd(&self) -> Result<(), Error>
pub fn Clear(&self) -> Result<(), Error>
pub fn GetMany( &self, startindex: u32, items: &mut [<T as Type<T, <T as TypeKind>::TypeKind>>::Default] ) -> Result<u32, Error>
pub fn ReplaceAll( &self, items: &[<T as Type<T, <T as TypeKind>::TypeKind>>::Default] ) -> Result<(), Error>
Trait Implementations§
§impl<T> Clone for IObservableVector<T>where
T: RuntimeType + 'static,
impl<T> Clone for IObservableVector<T>where T: RuntimeType + 'static,
§fn clone(&self) -> IObservableVector<T>
fn clone(&self) -> IObservableVector<T>
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<T> ComInterface for IObservableVector<T>where
T: RuntimeType + 'static,
impl<T> ComInterface for IObservableVector<T>where T: RuntimeType + 'static,
fn as_unknown(&self) -> &IUnknown
§impl<T> Debug for IObservableVector<T>where
T: RuntimeType + 'static,
impl<T> Debug for IObservableVector<T>where T: RuntimeType + 'static,
§impl<T> Interface for IObservableVector<T>where
T: RuntimeType + 'static,
impl<T> Interface for IObservableVector<T>where T: RuntimeType + 'static,
type Vtable = IObservableVector_Vtbl<T>
§fn as_raw(&self) -> *mut c_void
fn as_raw(&self) -> *mut c_void
Returns the raw COM interface pointer. The resulting pointer continues to be owned by the
Interface implementation.§fn into_raw(self) -> *mut c_void
fn into_raw(self) -> *mut c_void
Returns the raw COM interface pointer and releases ownership. It the caller’s responsibility to release the COM interface pointer.
§impl<T> IntoIterator for &IObservableVector<T>where
T: RuntimeType + 'static,
impl<T> IntoIterator for &IObservableVector<T>where T: RuntimeType + 'static,
§type IntoIter = VectorIterator<<&IObservableVector<T> as IntoIterator>::Item>
type IntoIter = VectorIterator<<&IObservableVector<T> as IntoIterator>::Item>
Which kind of iterator are we turning this into?
§fn into_iter(self) -> <&IObservableVector<T> as IntoIterator>::IntoIter
fn into_iter(self) -> <&IObservableVector<T> as IntoIterator>::IntoIter
Creates an iterator from a value. Read more
§impl<T> IntoIterator for IObservableVector<T>where
T: RuntimeType + 'static,
impl<T> IntoIterator for IObservableVector<T>where T: RuntimeType + 'static,
§type IntoIter = VectorIterator<<IObservableVector<T> as IntoIterator>::Item>
type IntoIter = VectorIterator<<IObservableVector<T> as IntoIterator>::Item>
Which kind of iterator are we turning this into?
§fn into_iter(self) -> <IObservableVector<T> as IntoIterator>::IntoIter
fn into_iter(self) -> <IObservableVector<T> as IntoIterator>::IntoIter
Creates an iterator from a value. Read more
§impl<T> PartialEq<IObservableVector<T>> for IObservableVector<T>where
T: RuntimeType + 'static,
impl<T> PartialEq<IObservableVector<T>> for IObservableVector<T>where T: RuntimeType + 'static,
§fn eq(&self, other: &IObservableVector<T>) -> bool
fn eq(&self, other: &IObservableVector<T>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl<T> Eq for IObservableVector<T>where T: RuntimeType + 'static,
Auto Trait Implementations§
impl<T> RefUnwindSafe for IObservableVector<T>where T: RefUnwindSafe,
impl<T> !Send for IObservableVector<T>
impl<T> !Sync for IObservableVector<T>
impl<T> Unpin for IObservableVector<T>where T: Unpin,
impl<T> UnwindSafe for IObservableVector<T>where T: UnwindSafe,
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