You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: number_input.rs
    path of file: ./repos/trezor-firmware/core/embed/rust/src/ui/model_tr/component/input_methods
    
    the code of the file until where you have to start completion: use crate::{
    translations::TR,
    ui::{
        component::{Component, Event, EventCtx},
        geometry::Rect,
    },
};

use super::super::{ButtonLayout, ChoiceFac
    
    fn get(&self, choice_index: usize) -> (Self::Item, Self::Action) {
        let num = self.min + choice_index as u32;
        let text: String<10> = String::from(num);
        let mut choice_item = ChoiceItem::new(
            text,
            ButtonLayout::arrow_armed_arrow(TR::buttons__select.into()),
        );

        // Disabling prev/next buttons for the first/last choice.
        // (could be done to the same button if there is only one)
        if choice_index == 0 {
            choice_item.set_left_btn(None);
        }
        if choice_index == <ChoiceFactoryNumberInput as ChoiceFactory>::count(self) - 1 {
            choice_item.set_right_btn(None);
        }

        (choice_item, num)
    }