pub struct IObjectCollection(/* private fields */);
Implementations§
Source§impl IObjectCollection
impl IObjectCollection
pub unsafe fn GetCount(&self) -> Result<u32>
pub unsafe fn GetAt<T: Interface>(&self, uiindex: u32) -> Result<T>
pub unsafe fn AddObject<'a>( &self, punk: impl IntoParam<'a, IUnknown>, ) -> Result<()>
pub unsafe fn AddFromArray<'a>( &self, poasource: impl IntoParam<'a, IObjectArray>, ) -> Result<()>
pub unsafe fn RemoveObjectAt(&self, uiindex: u32) -> Result<()>
pub unsafe fn Clear(&self) -> Result<()>
Trait Implementations§
Source§impl Clone for IObjectCollection
impl Clone for IObjectCollection
Source§fn clone(&self) -> IObjectCollection
fn clone(&self) -> IObjectCollection
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 Debug for IObjectCollection
impl Debug for IObjectCollection
Source§impl From<&IObjectCollection> for IObjectArray
impl From<&IObjectCollection> for IObjectArray
Source§fn from(value: &IObjectCollection) -> Self
fn from(value: &IObjectCollection) -> Self
Converts to this type from the input type.
Source§impl From<&IObjectCollection> for IUnknown
impl From<&IObjectCollection> for IUnknown
Source§fn from(value: &IObjectCollection) -> Self
fn from(value: &IObjectCollection) -> Self
Converts to this type from the input type.
Source§impl From<IObjectCollection> for IObjectArray
impl From<IObjectCollection> for IObjectArray
Source§fn from(value: IObjectCollection) -> Self
fn from(value: IObjectCollection) -> Self
Converts to this type from the input type.
Source§impl From<IObjectCollection> for IUnknown
impl From<IObjectCollection> for IUnknown
Source§fn from(value: IObjectCollection) -> Self
fn from(value: IObjectCollection) -> Self
Converts to this type from the input type.
Source§impl Interface for IObjectCollection
impl Interface for IObjectCollection
const IID: Guid
type Vtable = IObjectCollection_abi
Source§unsafe fn assume_vtable<T>(&self) -> &<T as Interface>::Vtablewhere
T: Interface,
unsafe fn assume_vtable<T>(&self) -> &<T as Interface>::Vtablewhere
T: Interface,
Safety Read more
Source§unsafe fn query(&self, iid: *const Guid, interface: *mut *mut c_void) -> HRESULT
unsafe fn query(&self, iid: *const Guid, interface: *mut *mut c_void) -> HRESULT
Safety Read more
Source§impl PartialEq for IObjectCollection
impl PartialEq for IObjectCollection
impl Eq for IObjectCollection
impl StructuralPartialEq for IObjectCollection
Auto Trait Implementations§
impl Freeze for IObjectCollection
impl RefUnwindSafe for IObjectCollection
impl !Send for IObjectCollection
impl !Sync for IObjectCollection
impl Unpin for IObjectCollection
impl UnwindSafe for IObjectCollection
Blanket Implementations§
Source§impl<T> Abi for Twhere
T: Interface,
impl<T> Abi for Twhere
T: Interface,
type DefaultType = Option<T>
Source§fn ok(value: &<T as Abi>::DefaultType) -> Result<T, Error>
fn ok(value: &<T as Abi>::DefaultType) -> Result<T, Error>
Converts from
Self::DefaultType
to Result<T>
.Source§fn set_abi(&mut self) -> *mut <T as Abi>::Abi
fn set_abi(&mut self) -> *mut <T as Abi>::Abi
Returns a pointer for setting the object’s value via an ABI call.
fn drop_param(_: &mut Param<'_, Self>)
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