modm{#[readonly::make]pubstructS{pubn:i32,
}implS{pubfndemo(&mutself){// Can read and write from inside the same module.
println!("{}",self.n);self.n +=1;}}}fndemo(s:&mutm::S){// From outside the module, can only read.
println!("{}", s.n);// Does not compile:
s.n +=1;}fnmain(){}