Struct windows::Foundation::Collections::IIterable

pub struct IIterable<T>(/* private fields */)
where
    T: RuntimeType + 'static;

Implementations§

§

impl<T: RuntimeType + 'static> IIterable<T>

pub fn First(&self) -> Result<IIterator<T>>

Methods from Deref<Target = IInspectable>§

pub fn GetRuntimeClassName(&self) -> Result<HSTRING, Error>

Returns the canonical type name for the underlying object.

pub fn GetTrustLevel(&self) -> Result<i32, Error>

Gets the trust level of the current object.

Trait Implementations§

§

impl<T: RuntimeType + 'static> CanInto<IInspectable> for IIterable<T>

§

const QUERY: bool = false

§

impl CanInto<IIterable<AccessListEntry>> for AccessListEntryView

§

const QUERY: bool = true

§

impl CanInto<IIterable<AudioTrack>> for MediaPlaybackAudioTrackList

§

const QUERY: bool = true

§

impl CanInto<IIterable<CharacterGrouping>> for CharacterGroupings

§

const QUERY: bool = true

§

impl CanInto<IIterable<CompositionAnimation>> for CompositionAnimationGroup

§

const QUERY: bool = true

§

impl CanInto<IIterable<CompositionColorGradientStop>> for CompositionColorGradientStopCollection

§

const QUERY: bool = true

§

impl CanInto<IIterable<CompositionProjectedShadowCaster>> for CompositionProjectedShadowCasterCollection

§

const QUERY: bool = true

§

impl CanInto<IIterable<CompositionProjectedShadowReceiver>> for CompositionProjectedShadowReceiverUnorderedCollection

§

const QUERY: bool = true

§

impl CanInto<IIterable<CompositionShape>> for CompositionShapeCollection

§

const QUERY: bool = true

§

impl CanInto<IIterable<DeviceInformation>> for DeviceInformationCollection

§

const QUERY: bool = true

§

impl CanInto<IIterable<DnssdServiceInstance>> for DnssdServiceInstanceCollection

§

const QUERY: bool = true

§

impl CanInto<IIterable<HSTRING>> for FileExtensionVector

§

const QUERY: bool = true

§

impl CanInto<IIterable<HSTRING>> for ResourceContextLanguagesVectorView

§

const QUERY: bool = true

§

impl CanInto<IIterable<HttpChallengeHeaderValue>> for HttpChallengeHeaderValueCollection

§

const QUERY: bool = true

§

impl CanInto<IIterable<HttpConnectionOptionHeaderValue>> for HttpConnectionOptionHeaderValueCollection

§

const QUERY: bool = true

§

impl CanInto<IIterable<HttpContentCodingHeaderValue>> for HttpContentCodingHeaderValueCollection

§

const QUERY: bool = true

§

impl CanInto<IIterable<HttpContentCodingWithQualityHeaderValue>> for HttpContentCodingWithQualityHeaderValueCollection

§

const QUERY: bool = true

§

impl CanInto<IIterable<HttpCookie>> for HttpCookieCollection

§

const QUERY: bool = true

§

impl CanInto<IIterable<HttpCookiePairHeaderValue>> for HttpCookiePairHeaderValueCollection

§

const QUERY: bool = true

§

impl CanInto<IIterable<HttpExpectationHeaderValue>> for HttpExpectationHeaderValueCollection

§

const QUERY: bool = true

§

impl CanInto<IIterable<HttpLanguageRangeWithQualityHeaderValue>> for HttpLanguageRangeWithQualityHeaderValueCollection

§

const QUERY: bool = true

§

impl CanInto<IIterable<HttpMediaTypeWithQualityHeaderValue>> for HttpMediaTypeWithQualityHeaderValueCollection

§

const QUERY: bool = true

§

impl CanInto<IIterable<HttpMethod>> for HttpMethodHeaderValueCollection

§

const QUERY: bool = true

§

impl CanInto<IIterable<HttpNameValueHeaderValue>> for HttpCacheDirectiveHeaderValueCollection

§

const QUERY: bool = true

§

impl CanInto<IIterable<HttpProductInfoHeaderValue>> for HttpProductInfoHeaderValueCollection

§

const QUERY: bool = true

§

impl CanInto<IIterable<HttpTransferCodingHeaderValue>> for HttpTransferCodingHeaderValueCollection

§

const QUERY: bool = true

§

impl CanInto<IIterable<ICompositionInteractionSource>> for CompositionInteractionSourceCollection

§

const QUERY: bool = true

§

impl CanInto<IIterable<IHttpContent>> for HttpMultipartContent

§

const QUERY: bool = true

§

impl CanInto<IIterable<IHttpContent>> for HttpMultipartFormDataContent

§

const QUERY: bool = true

§

impl CanInto<IIterable<IJsonValue>> for JsonArray

§

const QUERY: bool = true

§

impl CanInto<IIterable<IKeyValuePair<GUID, IInspectable>>> for MediaPropertySet

§

const QUERY: bool = true

§

impl CanInto<IIterable<IKeyValuePair<GUID, IInspectable>>> for MediaStreamSamplePropertySet

§

const QUERY: bool = true

§

impl CanInto<IIterable<IKeyValuePair<HSTRING, BitmapTypedValue>>> for BitmapPropertySet

§

const QUERY: bool = true

§

impl CanInto<IIterable<IKeyValuePair<HSTRING, HSTRING>>> for HttpContentHeaderCollection

§

const QUERY: bool = true

§

impl CanInto<IIterable<IKeyValuePair<HSTRING, HSTRING>>> for HttpRequestHeaderCollection

§

const QUERY: bool = true

§

impl CanInto<IIterable<IKeyValuePair<HSTRING, HSTRING>>> for HttpResponseHeaderCollection

§

const QUERY: bool = true

§

impl CanInto<IIterable<IKeyValuePair<HSTRING, HSTRING>>> for InitialValueExpressionCollection

§

const QUERY: bool = true

§

impl CanInto<IIterable<IKeyValuePair<HSTRING, HSTRING>>> for ResourceQualifierMapView

§

const QUERY: bool = true

§

impl CanInto<IIterable<IKeyValuePair<HSTRING, HSTRING>>> for ResourceQualifierObservableMap

§

const QUERY: bool = true

§

impl CanInto<IIterable<IKeyValuePair<HSTRING, HSTRING>>> for StringMap

§

const QUERY: bool = true

§

impl CanInto<IIterable<IKeyValuePair<HSTRING, ICompositionAnimationBase>>> for ImplicitAnimationCollection

§

const QUERY: bool = true

§

impl CanInto<IIterable<IKeyValuePair<HSTRING, IInspectable>>> for ApplicationDataCompositeValue

§

const QUERY: bool = true

§

impl CanInto<IIterable<IKeyValuePair<HSTRING, IInspectable>>> for ApplicationDataContainerSettings

§

const QUERY: bool = true

§

impl CanInto<IIterable<IKeyValuePair<HSTRING, IInspectable>>> for DataPackagePropertySet

§

const QUERY: bool = true

§

impl CanInto<IIterable<IKeyValuePair<HSTRING, IInspectable>>> for DataPackagePropertySetView

§

const QUERY: bool = true

§

impl CanInto<IIterable<IKeyValuePair<HSTRING, IInspectable>>> for FirstSignInSettings

§

const QUERY: bool = true

§

impl CanInto<IIterable<IKeyValuePair<HSTRING, IInspectable>>> for IPropertySet

§

const QUERY: bool = true

§

impl CanInto<IIterable<IKeyValuePair<HSTRING, IInspectable>>> for LearningModelBinding

§

const QUERY: bool = true

§

impl CanInto<IIterable<IKeyValuePair<HSTRING, IInspectable>>> for PasswordCredentialPropertyStore

§

const QUERY: bool = true

§

impl CanInto<IIterable<IKeyValuePair<HSTRING, IInspectable>>> for PropertySet

§

const QUERY: bool = true

§

impl CanInto<IIterable<IKeyValuePair<HSTRING, IInspectable>>> for ValueSet

§

const QUERY: bool = true

§

impl CanInto<IIterable<IKeyValuePair<HSTRING, IJsonValue>>> for JsonObject

§

const QUERY: bool = true

§

impl CanInto<IIterable<IKeyValuePair<HSTRING, IVector<HSTRING>>>> for FilePickerFileTypesOrderedMap

§

const QUERY: bool = true

§

impl CanInto<IIterable<IKeyValuePair<HSTRING, NamedResource>>> for ResourceMap

§

const QUERY: bool = true

§

impl CanInto<IIterable<IKeyValuePair<HSTRING, ResourceMap>>> for ResourceMapMapView

§

const QUERY: bool = true

§

impl CanInto<IIterable<IKeyValuePair<HSTRING, SceneAttributeSemantic>>> for SceneMeshMaterialAttributeMap

§

const QUERY: bool = true

§

impl<K: RuntimeType + 'static, V: RuntimeType + 'static> CanInto<IIterable<IKeyValuePair<K, V>>> for IMap<K, V>

§

const QUERY: bool = true

§

impl<K: RuntimeType + 'static, V: RuntimeType + 'static> CanInto<IIterable<IKeyValuePair<K, V>>> for IMapView<K, V>

§

const QUERY: bool = true

§

impl<K: RuntimeType + 'static, V: RuntimeType + 'static> CanInto<IIterable<IKeyValuePair<K, V>>> for IObservableMap<K, V>

§

const QUERY: bool = true

§

impl CanInto<IIterable<ILampArrayEffect>> for LampArrayEffectPlaylist

§

const QUERY: bool = true

§

impl CanInto<IIterable<IPlayReadyDomain>> for PlayReadyDomainIterable

§

const QUERY: bool = true

§

impl CanInto<IIterable<IPlayReadyLicense>> for PlayReadyLicenseIterable

§

const QUERY: bool = true

§

impl CanInto<IIterable<IPlayReadySecureStopServiceRequest>> for PlayReadySecureStopIterable

§

const QUERY: bool = true

§

impl CanInto<IIterable<IWwwFormUrlDecoderEntry>> for WwwFormUrlDecoder

§

const QUERY: bool = true

§

impl CanInto<IIterable<IXmlNode>> for XmlNamedNodeMap

§

const QUERY: bool = true

§

impl CanInto<IIterable<IXmlNode>> for XmlNodeList

§

const QUERY: bool = true

§

impl CanInto<IIterable<Language>> for HttpLanguageHeaderValueCollection

§

const QUERY: bool = true

§

impl CanInto<IIterable<PlaybackMediaMarker>> for PlaybackMediaMarkerSequence

§

const QUERY: bool = true

§

impl CanInto<IIterable<PnpObject>> for PnpObjectCollection

§

const QUERY: bool = true

§

impl CanInto<IIterable<ResourceCandidate>> for ResourceCandidateVectorView

§

const QUERY: bool = true

§

impl CanInto<IIterable<ResourceQualifier>> for ResourceQualifierVectorView

§

const QUERY: bool = true

§

impl CanInto<IIterable<SceneComponent>> for SceneComponentCollection

§

const QUERY: bool = true

§

impl CanInto<IIterable<SceneNode>> for SceneNodeCollection

§

const QUERY: bool = true

§

impl CanInto<IIterable<SortEntry>> for SortEntryVector

§

const QUERY: bool = true

§

impl CanInto<IIterable<StorageFile>> for FilePickerSelectedFilesArray

§

const QUERY: bool = true

§

impl<T: RuntimeType + 'static> CanInto<IIterable<T>> for IObservableVector<T>

§

const QUERY: bool = true

§

impl<T: RuntimeType + 'static> CanInto<IIterable<T>> for IVector<T>

§

const QUERY: bool = true

§

impl<T: RuntimeType + 'static> CanInto<IIterable<T>> for IVectorView<T>

§

const QUERY: bool = true

§

impl CanInto<IIterable<TimedMetadataTrack>> for MediaPlaybackTimedMetadataTrackList

§

const QUERY: bool = true

§

impl CanInto<IIterable<VideoTrack>> for MediaPlaybackVideoTrackList

§

const QUERY: bool = true

§

impl CanInto<IIterable<Visual>> for VisualCollection

§

const QUERY: bool = true

§

impl CanInto<IIterable<Visual>> for VisualUnorderedCollection

§

const QUERY: bool = true

§

impl CanInto<IIterable<VpnPacketBuffer>> for VpnPacketBufferList

§

const QUERY: bool = true

§

impl CanInto<IIterable<WindowTab>> for WindowTabCollection

§

const QUERY: bool = true

§

impl CanInto<IIterable<f32>> for CompositionStrokeDashArray

§

const QUERY: bool = true

§

impl<T: RuntimeType + 'static> CanInto<IUnknown> for IIterable<T>

§

const QUERY: bool = false

§

impl<T> Clone for IIterable<T>
where T: RuntimeType + 'static + Clone,

§

fn clone(&self) -> IIterable<T>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl<T> Debug for IIterable<T>
where T: RuntimeType + 'static + Debug,

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
§

impl<T: RuntimeType + 'static> Deref for IIterable<T>

§

type Target = IInspectable

The resulting type after dereferencing.
§

fn deref(&self) -> &Self::Target

Dereferences the value.
§

impl<T: RuntimeType + 'static> Interface for IIterable<T>

§

const IID: GUID = _

The GUID associated with the interface.
§

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

Returns the raw COM interface pointer and releases ownership. It the caller’s responsibility to release the COM interface pointer.
§

unsafe fn from_raw(raw: *mut c_void) -> Self

Creates an Interface by taking ownership of the raw COM interface pointer. Read more
§

unsafe fn from_raw_borrowed(raw: &*mut c_void) -> Option<&Self>

Creates an Interface that is valid so long as the raw COM interface pointer is valid. Read more
§

fn cast<T>(&self) -> Result<T, Error>
where T: Interface,

Attempts to cast the current interface to another interface using QueryInterface. Read more
§

fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>
where T: ComObjectInner, <T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,

This casts the given COM interface to [&dyn Any]. Read more
§

fn is_object<T>(&self) -> bool
where T: ComObjectInner, <T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,

Returns true if the given COM interface refers to an implementation of T. Read more
§

fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>
where T: ComObjectInner, <T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,

This casts the given COM interface to [&dyn Any]. It returns a reference to the “outer” object, e.g. &MyApp_Impl, not the inner &MyApp object. Read more
§

fn cast_object<T>(&self) -> Result<ComObject<T>, Error>
where T: ComObjectInner, <T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,

This casts the given COM interface to [&dyn Any]. It returns a reference to the “outer” object, e.g. MyApp_Impl, not the inner MyApp object. Read more
§

fn downgrade(&self) -> Result<Weak<Self>, Error>

Attempts to create a [Weak] reference to this object.
§

unsafe fn query(&self, iid: *const GUID, interface: *mut *mut c_void) -> HRESULT

Call QueryInterface on this interface Read more
§

fn to_ref(&self) -> InterfaceRef<'_, Self>

Creates an InterfaceRef for this reference. The InterfaceRef tracks lifetimes statically, and eliminates the need for dynamic reference count adjustments (AddRef/Release).
§

impl<T: RuntimeType> IntoIterator for &IIterable<T>

§

type Item = T

The type of the elements being iterated over.
§

type IntoIter = IIterator<<&IIterable<T> as IntoIterator>::Item>

Which kind of iterator are we turning this into?
§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
§

impl<T: RuntimeType> IntoIterator for IIterable<T>

§

type Item = T

The type of the elements being iterated over.
§

type IntoIter = IIterator<<IIterable<T> as IntoIterator>::Item>

Which kind of iterator are we turning this into?
§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
§

impl<T> PartialEq for IIterable<T>
where T: RuntimeType + 'static + PartialEq,

§

fn eq(&self, other: &IIterable<T>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl<T> TryFrom<Vec<<T as Type<T>>::Default>> for IIterable<T>
where T: RuntimeType, T::Default: Clone,

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(values: Vec<T::Default>) -> Result<Self>

Performs the conversion.
§

impl<T> Eq for IIterable<T>
where T: RuntimeType + 'static + Eq,

§

impl<T> StructuralPartialEq for IIterable<T>
where T: RuntimeType + 'static,

Auto Trait Implementations§

§

impl<T> Freeze for IIterable<T>

§

impl<T> RefUnwindSafe for IIterable<T>
where T: RefUnwindSafe,

§

impl<T> !Send for IIterable<T>

§

impl<T> !Sync for IIterable<T>

§

impl<T> Unpin for IIterable<T>
where T: Unpin,

§

impl<T> UnwindSafe for IIterable<T>
where T: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

default unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.