pub fn with_single_content(
        texture: Handle<Image>,
        nine_patch: Handle<NinePatchBuilder<T>>,
        content: Entity,
    ) -> NinePatchData<T> {
        let mut content_map = std::collections::HashMap::with_capacity(1);
        content_map.insert(T::default(), content);
        NinePatchData {
            texture,
            nine_patch,
            loaded: false,
            content: Some(content_map),
        }
    }
/// Create a NinePathData with content when there is only one content
Create a NinePathData with content when there is only one content
Create a NinePathData with content when there is only one content
pub fn with_single_content(
        texture: Handle<Image>,
        nine_patch: Handle<NinePatchBuilder<T>>,
        content: Entity,
    ) -> NinePatchData<T> {
        let mut content_map = std::collections::HashMap::with_capacity(1);
        content_map.insert(T::default(), content);
        NinePatchData {
            texture,
            nine_patch,
            loaded: false,
            content: Some(content_map),
        }
    }
pub fn with_single_content ( texture : Handle < Image > , nine_patch : Handle < NinePatchBuilder < T > > , content : Entity , ) -> NinePatchData < T > { let mut content_map = std :: collections :: HashMap :: with_capacity ( 1 ) ; content_map . insert ( T :: default ( ) , content ) ; NinePatchData { texture , nine_patch , loaded : false , content : Some ( content_map ) , } }
Create a NinePathData with content when there is only one content
Create a NinePathData with content when there is only one content
texture
Handle<Image>
nine_patch
Handle<NinePatchBuilder<T>>
content
Entity