Struct windows::Foundation::Collections::StringMap
pub struct StringMap(/* private fields */);
Implementations§
§impl StringMap
impl StringMap
pub fn new() -> Result<Self>
pub fn First(&self) -> Result<IIterator<IKeyValuePair<HSTRING, HSTRING>>>
pub fn Lookup(&self, key: &HSTRING) -> Result<HSTRING>
pub fn Size(&self) -> Result<u32>
pub fn HasKey(&self, key: &HSTRING) -> Result<bool>
pub fn GetView(&self) -> Result<IMapView<HSTRING, HSTRING>>
pub fn Insert(&self, key: &HSTRING, value: &HSTRING) -> Result<bool>
pub fn Remove(&self, key: &HSTRING) -> Result<()>
pub fn Clear(&self) -> Result<()>
pub fn MapChanged<P0>(&self, vhnd: P0) -> Result<EventRegistrationToken>
pub fn RemoveMapChanged(&self, token: EventRegistrationToken) -> Result<()>
Trait Implementations§
§impl From<&StringMap> for &IInspectable
impl From<&StringMap> for &IInspectable
§impl From<StringMap> for IInspectable
impl From<StringMap> for IInspectable
§impl Interface for StringMap
impl Interface for StringMap
§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.
§fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
Attempts to cast the current interface to another interface using
QueryInterface
. Read more§impl IntoIterator for &StringMap
impl IntoIterator for &StringMap
§impl IntoIterator for StringMap
impl IntoIterator for StringMap
impl Eq for StringMap
impl Send for StringMap
impl StructuralPartialEq for StringMap
impl Sync for StringMap
Auto Trait Implementations§
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