pub fn extended_name(&self, use_extended_category_name: bool) -> Cow<'_, str> {
        let mut name = Cow::Borrowed(self.game_name());

        let category_name = if use_extended_category_name {
            Cow::Owned(self.extended_category_name(false, false, true).to_string())
        } else {
            Cow::Borrowed(self.category_name())
        };

        if !category_name.is_empty() {
            if !name.is_empty() {
                let name = name.to_mut();
                name.push_str(" - ");
                name.push_str(&category_name);
            } else {
                name = category_name;
            }
        }

        name
    }
/// Returns a name suitable for this Run that is built the following way:
///
/// Game Name - Category Name
///
/// If either is empty, the dash is omitted. If an extended category name is
/// used, the variables of the category are appended in a parenthesis.
Returns a name suitable for this Run that is built the following way:
Game Name - Category Name

If either is empty, the dash is omitted. If an extended category name is
used, the variables of the category are appended in a parenthesis.
Returns a name suitable for this Run that is built the following way : Game Name - Category Name If either is empty the dash is omitted . If an extended category name is used the variables of the category are appended in a parenthesis .
pub fn extended_name(&self, use_extended_category_name: bool) -> Cow<'_, str> {
        let mut name = Cow::Borrowed(self.game_name());
        let category_name = if use_extended_category_name {
            Cow::Owned(self.extended_category_name(false, false, true).to_string())
        } else {
            Cow::Borrowed(self.category_name())
        };
        if !category_name.is_empty() {
            if !name.is_empty() {
                let name = name.to_mut();
                name.push_str(" - ");
                name.push_str(&category_name);
            } else {
                name = category_name;
            }
        }
        name
    }
pub fn extended_name ( & self , use_extended_category_name : bool ) -> Cow < ' _ , str > { let mut name = Cow :: Borrowed ( self . game_name ( ) ) ; let category_name = if use_extended_category_name { Cow :: Owned ( self . extended_category_name ( false , false , true ) . to_string ( ) ) } else { Cow :: Borrowed ( self . category_name ( ) ) } ; if ! category_name . is_empty ( ) { if ! name . is_empty ( ) { let name = name . to_mut ( ) ; name . push_str ( " " ) ; name . push_str ( & category_name ) ; } else { name = category_name ; } } name }
Returns a name suitable for this Run that is built the following way:
Game Name - Category Name
Returns a name suitable for this Run that is built the following way : Game Name - Category Name
&self
use_extended_category_name
bool
&self
use_extended_category_name
bool