pub struct RubyNameMangler {
pub used: HashSet<String>,
pub map: HashMap<String, String>,
}Expand description
Ruby name mangler
Fields§
§used: HashSet<String>§map: HashMap<String, String>Implementations§
Source§impl RubyNameMangler
impl RubyNameMangler
pub fn new() -> Self
pub fn mangle_constant(&mut self, name: &str) -> String
pub fn mangle_method(&mut self, name: &str) -> String
Trait Implementations§
Source§impl Debug for RubyNameMangler
impl Debug for RubyNameMangler
Source§impl Default for RubyNameMangler
impl Default for RubyNameMangler
Source§fn default() -> RubyNameMangler
fn default() -> RubyNameMangler
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RubyNameMangler
impl RefUnwindSafe for RubyNameMangler
impl Send for RubyNameMangler
impl Sync for RubyNameMangler
impl Unpin for RubyNameMangler
impl UnsafeUnpin for RubyNameMangler
impl UnwindSafe for RubyNameMangler
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more