pub trait PathSourceInfoExt {
// Required methods
fn source_mode_idx(&self, path_support_virtual_mode: bool) -> Option<usize>;
fn clone_group_id(&self, path_support_virtual_mode: bool) -> Option<usize>;
fn set_source_mode_idx(
&mut self,
idx: Option<usize>,
path_support_virtual_mode: bool,
);
fn set_clone_group_id(
&mut self,
id: Option<usize>,
path_support_virtual_mode: bool,
);
}Expand description
Convenience extension methods for DISPLAYCONFIG_PATH_SOURCE_INFO.
Required Methods§
Sourcefn source_mode_idx(&self, path_support_virtual_mode: bool) -> Option<usize>
fn source_mode_idx(&self, path_support_virtual_mode: bool) -> Option<usize>
Obtains the source mode index.
It handles the bits, including testing against
DISPLAYCONFIG_PATH_SOURCE_MODE_IDX_INVALID or DISPLAYCONFIG_PATH_MODE_IDX_INVALID
appropriately.
Sourcefn clone_group_id(&self, path_support_virtual_mode: bool) -> Option<usize>
fn clone_group_id(&self, path_support_virtual_mode: bool) -> Option<usize>
Obtains the clone group id.
Sourcefn set_source_mode_idx(
&mut self,
idx: Option<usize>,
path_support_virtual_mode: bool,
)
fn set_source_mode_idx( &mut self, idx: Option<usize>, path_support_virtual_mode: bool, )
Sets the source mode index.
It handles the bits, including using
DISPLAYCONFIG_PATH_SOURCE_MODE_IDX_INVALID or DISPLAYCONFIG_PATH_MODE_IDX_INVALID
appropriately.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".