定义函数 make_true 对字符串进行操作,然后返回字符串,这是对数据的操作。
#[derive(Debug)]struct Fact { text: String}fn make_true(input:&Fact) -> Fact{ Fact{text:format!("{}!!",input.text)}}