pub enum Module {
Address(u64),
Name(String),
}
Expand description
Represents either a module address or a module name.
This enum is used to pass arguments to methods like Dbg::remove_synthetic_module
.
Variants§
Trait Implementations§
Source§impl From<&str> for Module
impl From<&str> for Module
Source§fn from(name: &str) -> Self
fn from(name: &str) -> Self
Converts a &str
into a Module::Name
.
impl Eq for Module
impl StructuralPartialEq for Module
Auto Trait Implementations§
impl Freeze for Module
impl RefUnwindSafe for Module
impl Send for Module
impl Sync for Module
impl Unpin for Module
impl UnwindSafe for Module
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