MutImmutable => MutMutable,
}
}
+
+ pub fn prefix_str(&self) -> &'static str {
+ match self {
+ MutMutable => "mut ",
+ MutImmutable => "",
+ }
+ }
}
#[derive(Copy, Clone, PartialEq, RustcEncodable, RustcDecodable, Debug, HashStable)]
Normal,
}
+impl Unsafety {
+ pub fn prefix_str(&self) -> &'static str {
+ match self {
+ Unsafety::Unsafe => "unsafe ",
+ Unsafety::Normal => "",
+ }
+ }
+}
+
#[derive(Copy, Clone, PartialEq, RustcEncodable, RustcDecodable, Debug, HashStable)]
pub enum Constness {
Const,