pub struct IMap<K, V>(/* private fields */)
where
K: RuntimeType + 'static,
V: RuntimeType + 'static;Implementations§
Source§impl<K: RuntimeType + 'static, V: RuntimeType + 'static> IMap<K, V>
impl<K: RuntimeType + 'static, V: RuntimeType + 'static> IMap<K, V>
pub fn Lookup<P0>(&self, key: P0) -> Result<V>where
P0: Param<K>,
pub fn Size(&self) -> Result<u32>
pub fn HasKey<P0>(&self, key: P0) -> Result<bool>where
P0: Param<K>,
pub fn GetView(&self) -> Result<IMapView<K, V>>
pub fn Insert<P0, P1>(&self, key: P0, value: P1) -> Result<bool>
pub fn Remove<P0>(&self, key: P0) -> Result<()>where
P0: Param<K>,
pub fn Clear(&self) -> Result<()>
pub fn First(&self) -> Result<IIterator<IKeyValuePair<K, V>>>
Trait Implementations§
Source§impl<K: RuntimeType + 'static, V: RuntimeType + 'static> CanInto<IInspectable> for IMap<K, V>
impl<K: RuntimeType + 'static, V: RuntimeType + 'static> CanInto<IInspectable> for IMap<K, V>
Source§impl<K: RuntimeType + 'static, V: RuntimeType + 'static> CanInto<IIterable<IKeyValuePair<K, V>>> for IMap<K, V>
impl<K: RuntimeType + 'static, V: RuntimeType + 'static> CanInto<IIterable<IKeyValuePair<K, V>>> for IMap<K, V>
Source§impl<K: RuntimeType + 'static, V: RuntimeType + 'static> CanInto<IMap<K, V>> for IObservableMap<K, V>
impl<K: RuntimeType + 'static, V: RuntimeType + 'static> CanInto<IMap<K, V>> for IObservableMap<K, V>
impl<K, V> Eq for IMap<K, V>
Source§impl<K: RuntimeType + 'static, V: RuntimeType + 'static> Interface for IMap<K, V>
impl<K: RuntimeType + 'static, V: RuntimeType + 'static> Interface for IMap<K, V>
Source§fn into_raw(self) -> *mut c_void
fn into_raw(self) -> *mut c_void
Transfers ownership of the COM interface pointer to the caller.
Source§unsafe fn from_raw(raw: *mut c_void) -> Self
unsafe fn from_raw(raw: *mut c_void) -> Self
Takes ownership of a COM interface pointer. Read more
Source§unsafe fn from_raw_borrowed(raw: &*mut c_void) -> Option<&Self>
unsafe fn from_raw_borrowed(raw: &*mut c_void) -> Option<&Self>
Borrows a COM interface pointer. Read more
Source§fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
Queries the object for another interface.
Source§fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>
fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>
Returns the generated outer Rust implementation as [
&dyn Any]. Read moreSource§fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>
fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>
Returns a borrowed reference to the generated outer Rust implementation. Read more
Source§fn cast_object<T>(&self) -> Result<ComObject<T>, Error>
fn cast_object<T>(&self) -> Result<ComObject<T>, Error>
Returns an owned reference to the generated outer Rust implementation. Read more
Source§fn downgrade(&self) -> Result<Weak<Self>, Error>
fn downgrade(&self) -> Result<Weak<Self>, Error>
Attempts to create a
Weak reference to this object.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
Calls
QueryInterface. Read moreSource§fn to_ref(&self) -> InterfaceRef<'_, Self>
fn to_ref(&self) -> InterfaceRef<'_, Self>
Borrows this interface without changing its reference count.
Source§impl<K: RuntimeType + 'static, V: RuntimeType + 'static> IntoIterator for IMap<K, V>
impl<K: RuntimeType + 'static, V: RuntimeType + 'static> IntoIterator for IMap<K, V>
Source§impl<K: RuntimeType + 'static, V: RuntimeType + 'static> IntoIterator for &IMap<K, V>
impl<K: RuntimeType + 'static, V: RuntimeType + 'static> IntoIterator for &IMap<K, V>
impl<K, V> StructuralPartialEq for IMap<K, V>
Auto Trait Implementations§
impl<K, V> !Send for IMap<K, V>
impl<K, V> !Sync for IMap<K, V>
impl<K, V> Freeze for IMap<K, V>
impl<K, V> RefUnwindSafe for IMap<K, V>
impl<K, V> Unpin for IMap<K, V>
impl<K, V> UnsafeUnpin for IMap<K, V>
impl<K, V> UnwindSafe for IMap<K, V>
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