pub trait IFrnFilePickerFileTypesImpl: IUnknownImpl {
// Required methods
fn get_count(&self) -> i32;
fn is_default_type(&self, index: i32) -> bool;
fn is_any_type(&self, index: i32) -> bool;
fn get_name(&self, index: i32) -> Option<ComPtr<IFrnString>>;
fn get_patterns(
&self,
index: i32,
) -> Result<Option<ComPtr<IFrnStringArray>>, HResult>;
fn get_extensions(
&self,
index: i32,
) -> Result<Option<ComPtr<IFrnStringArray>>, HResult>;
fn get_mime_types(
&self,
index: i32,
) -> Result<Option<ComPtr<IFrnStringArray>>, HResult>;
fn get_apple_uniform_type_identifiers(
&self,
index: i32,
) -> Result<Option<ComPtr<IFrnStringArray>>, HResult>;
}Expand description
Implement this to provide IFrnFilePickerFileTypes to native code (see IFrnFilePickerFileTypes::from_impl).
Required Methods§
fn get_count(&self) -> i32
fn is_default_type(&self, index: i32) -> bool
fn is_any_type(&self, index: i32) -> bool
fn get_name(&self, index: i32) -> Option<ComPtr<IFrnString>>
fn get_patterns( &self, index: i32, ) -> Result<Option<ComPtr<IFrnStringArray>>, HResult>
fn get_extensions( &self, index: i32, ) -> Result<Option<ComPtr<IFrnStringArray>>, HResult>
fn get_mime_types( &self, index: i32, ) -> Result<Option<ComPtr<IFrnStringArray>>, HResult>
fn get_apple_uniform_type_identifiers( &self, index: i32, ) -> Result<Option<ComPtr<IFrnStringArray>>, HResult>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".