fn buttons(mouse_report: &Option<fidl_fuchsia_input_report::MouseReport>) -> u32 {
    if mouse_report.is_some() {
        return match &mouse_report.as_ref().unwrap().pressed_buttons {
            Some(buttons) => get_u32_from_vector(&buttons),
            None => 0,
        };
    }

    0
}
/// Returns a u32 representation of the pressed buttons in the MouseReport.
///
/// # Parameters
/// - `mouse_report`: The report to get pressed buttons from.
Returns a u32 representation of the pressed buttons in the MouseReport.
Returns a u32 representation of the pressed buttons in the MouseReport .
fn buttons(mouse_report: &Option<fidl_fuchsia_input_report::MouseReport>) -> u32 {
    if mouse_report.is_some() {
        return match &mouse_report.as_ref().unwrap().pressed_buttons {
            Some(buttons) => get_u32_from_vector(&buttons),
            None => 0,
        };
    }
    0
}
fn buttons ( mouse_report : & Option < fidl_fuchsia_input_report :: MouseReport > ) -> u32 { if mouse_report . is_some ( ) { return match & mouse_report . as_ref ( ) . unwrap ( ) . pressed_buttons { Some ( buttons ) => get_u32_from_vector ( & buttons ) , None => 0 , } ; } 0 }
Returns a u32 representation of the pressed buttons in the MouseReport.
Returns a u32 representation of the pressed buttons in the MouseReport .
mouse_report
&Option<fidl_fuchsia_input_report::MouseReport>
The report to get pressed buttons from.
The report to get pressed buttons from .