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: class_info.rs
    path of file: ./repos/biome/crates/biome_js_analyze/src/semantic_analyzers/nursery/use_sorted_classes
    
    the code of the file until where you have to start completion: //! Each CSS class needs to be processed to determine the information that will be used to sort it.
//! This information includes:
//! - The layer it belongs to (e.g. `components` or `utilities`).
//! - The index of the utility within the layer.
//! - The total variants weight that results from the combination of all the variants.
//! - The text of the class itself.
//! It is generated according to 
    
    fn test_partial_match_longest() {
        let utility_config = vec![UtilityLayer {
            name: "layer",
            classes: &["border-", "border-t-"],
        }];
        let utility_data = ClassSegmentStructure {
            text: "border-t-2".to_string(),
            arbitrary: false,
        };
        assert_eq!(
            get_utility_info(utility_config.as_slice(), &utility_data),
            Some(UtilityInfo {
                layer: "layer",
                index: 1,
            })
        );
    }