pub struct IObservableMap<K, V>(/* private fields */)
where
K: RuntimeType + 'static,
V: RuntimeType + 'static;Implementations§
Source§impl<K: RuntimeType + 'static, V: RuntimeType + 'static> IObservableMap<K, V>
impl<K: RuntimeType + 'static, V: RuntimeType + 'static> IObservableMap<K, V>
pub fn MapChanged<F>(&self, handler: F) -> Result<EventRevoker>
pub fn First(&self) -> Result<IIterator<IKeyValuePair<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<()>
Trait Implementations§
Source§impl<K: RuntimeType + 'static, V: RuntimeType + 'static> CanInto<IInspectable> for IObservableMap<K, V>
impl<K: RuntimeType + 'static, V: RuntimeType + 'static> CanInto<IInspectable> for IObservableMap<K, V>
Source§impl<K: RuntimeType + 'static, V: RuntimeType + 'static> CanInto<IIterable<IKeyValuePair<K, V>>> for IObservableMap<K, V>
impl<K: RuntimeType + 'static, V: RuntimeType + 'static> CanInto<IIterable<IKeyValuePair<K, V>>> for IObservableMap<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>
Source§impl<K: RuntimeType + 'static, V: RuntimeType + 'static> CanInto<IUnknown> for IObservableMap<K, V>
impl<K: RuntimeType + 'static, V: RuntimeType + 'static> CanInto<IUnknown> for IObservableMap<K, V>
Source§impl<K, V> Clone for IObservableMap<K, V>
impl<K, V> Clone for IObservableMap<K, V>
Source§fn clone(&self) -> IObservableMap<K, V>
fn clone(&self) -> IObservableMap<K, V>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<K, V> Debug for IObservableMap<K, V>
impl<K, V> Debug for IObservableMap<K, V>
impl<K, V> Eq for IObservableMap<K, V>
Source§impl<K, V> From<BTreeMap<<K as Type<K>>::Default, <V as Type<V>>::Default>> for IObservableMap<K, V>
impl<K, V> From<BTreeMap<<K as Type<K>>::Default, <V as Type<V>>::Default>> for IObservableMap<K, V>
Source§impl<K: RuntimeType + 'static, V: RuntimeType + 'static> Interface for IObservableMap<K, V>
impl<K: RuntimeType + 'static, V: RuntimeType + 'static> Interface for IObservableMap<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 IObservableMap<K, V>
impl<K: RuntimeType + 'static, V: RuntimeType + 'static> IntoIterator for IObservableMap<K, V>
Source§type Item = IKeyValuePair<K, V>
type Item = IKeyValuePair<K, V>
The type of the elements being iterated over.
Source§type IntoIter = BufferedIterator<<IObservableMap<K, V> as IntoIterator>::Item>
type IntoIter = BufferedIterator<<IObservableMap<K, V> as IntoIterator>::Item>
Which kind of iterator are we turning this into?
Source§impl<K: RuntimeType + 'static, V: RuntimeType + 'static> IntoIterator for &IObservableMap<K, V>
impl<K: RuntimeType + 'static, V: RuntimeType + 'static> IntoIterator for &IObservableMap<K, V>
Source§type Item = IKeyValuePair<K, V>
type Item = IKeyValuePair<K, V>
The type of the elements being iterated over.
Source§type IntoIter = BufferedIterator<<&IObservableMap<K, V> as IntoIterator>::Item>
type IntoIter = BufferedIterator<<&IObservableMap<K, V> as IntoIterator>::Item>
Which kind of iterator are we turning this into?
Source§impl<K, V> PartialEq for IObservableMap<K, V>
impl<K, V> PartialEq for IObservableMap<K, V>
impl<K, V> StructuralPartialEq for IObservableMap<K, V>
Auto Trait Implementations§
impl<K, V> !Send for IObservableMap<K, V>
impl<K, V> !Sync for IObservableMap<K, V>
impl<K, V> Freeze for IObservableMap<K, V>
impl<K, V> RefUnwindSafe for IObservableMap<K, V>
impl<K, V> Unpin for IObservableMap<K, V>
impl<K, V> UnsafeUnpin for IObservableMap<K, V>
impl<K, V> UnwindSafe for IObservableMap<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