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: ansi_style.rs
    path of file: ./repos/Theseus/kernel/text_terminal/src
    
    the code of the file until where you have to start completion: //! Style and formatting of text displayed in a terminal,
//! following the ANSI, VT100, and xterm standards.

use core::{convert::TryFrom, fmt};
use alloc::borrow::Cow;
use crate::{BackgroundColor, ForegroundColor, ScreenPoint, ScrollbackBufferPoint
    
fn test_bit_diff1() {
    let old = FormatFlags::BRIGHT | FormatFlags::UNDERLINE | FormatFlags::INVERSE | FormatFlags::HIDDEN;
    let new = FormatFlags::STRIKETHROUGH | FormatFlags::INVERSE; // | FormatFlags::BRIGHT;
    println!("old: {:?}", old);
    println!("new: {:?}", new);
    println!("old - new: {:?}", old-new);
    println!("new - old: {:?}", new-old);
    println!("old XOR new: {:?}", old.bits_that_differ(new));
    for code in old.diff(new) {
        println!("\t{:?}", code);
    }
}