Struct makepad_widgets::shader::std::windows::Foundation::Collections::StringMap
#[repr(transparent)]pub struct StringMap(/* private fields */);Expand description
Required features: "Foundation_Collections"
Implementations§
§impl StringMap
impl StringMap
pub fn new() -> Result<StringMap, Error>
pub fn First(&self) -> Result<IIterator<IKeyValuePair<HSTRING, HSTRING>>, Error>
pub fn Lookup(&self, key: &HSTRING) -> Result<HSTRING, Error>
pub fn Size(&self) -> Result<u32, Error>
pub fn HasKey(&self, key: &HSTRING) -> Result<bool, Error>
pub fn GetView(&self) -> Result<IMapView<HSTRING, HSTRING>, Error>
pub fn Insert(&self, key: &HSTRING, value: &HSTRING) -> Result<bool, Error>
pub fn Remove(&self, key: &HSTRING) -> Result<(), Error>
pub fn Clear(&self) -> Result<(), Error>
pub fn MapChanged<P0>(&self, vhnd: P0) -> Result<EventRegistrationToken, Error>where P0: IntoParam<MapChangedEventHandler<HSTRING, HSTRING>, <MapChangedEventHandler<HSTRING, HSTRING> as TypeKind>::TypeKind>,
pub fn RemoveMapChanged( &self, token: EventRegistrationToken ) -> Result<(), Error>
Trait Implementations§
§impl ComInterface for StringMap
impl ComInterface for StringMap
§const IID: GUID = <IMap<::windows_core::HSTRING, ::windows_core::HSTRING> as
::windows_core::ComInterface>::IID
const IID: GUID = <IMap<::windows_core::HSTRING, ::windows_core::HSTRING> as ::windows_core::ComInterface>::IID
A unique identifier representing this interface.
fn as_unknown(&self) -> &IUnknown
§impl Interface for StringMap
impl Interface for StringMap
type Vtable = IMap_Vtbl<HSTRING, HSTRING>
§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 IntoIterator for &StringMap
impl IntoIterator for &StringMap
§impl IntoIterator for StringMap
impl IntoIterator for StringMap
impl Eq for StringMap
impl Send 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