[−][src]Function tao_of_rust::ch02::function::true_maker
pub fn true_maker() -> fn() -> bool
函数指针 : 函数作为返回值
Basic usage:
fn is_true() -> bool { true } fn true_maker() -> fn() -> bool { is_true } assert_eq!(true_maker()(), true);Run