Skip to main content

PathSourceInfoExt

Trait PathSourceInfoExt 

Source
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§

Source

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.

Source

fn clone_group_id(&self, path_support_virtual_mode: bool) -> Option<usize>

Obtains the clone group id.

Source

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.

Source

fn set_clone_group_id( &mut self, id: Option<usize>, path_support_virtual_mode: bool, )

Sets the clone group id.

It panics if path_support_virtual_mode is false and id is not None.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§