pub struct ModuleAttribute {
pub name: String,
pub arg: Option<String>,
}Expand description
A module attribute (like #[inline], @[simp], etc.).
Fields§
§name: StringAttribute name
arg: Option<String>Optional argument
Implementations§
Trait Implementations§
Source§impl Clone for ModuleAttribute
impl Clone for ModuleAttribute
Source§fn clone(&self) -> ModuleAttribute
fn clone(&self) -> ModuleAttribute
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ModuleAttribute
impl RefUnwindSafe for ModuleAttribute
impl Send for ModuleAttribute
impl Sync for ModuleAttribute
impl Unpin for ModuleAttribute
impl UnsafeUnpin for ModuleAttribute
impl UnwindSafe for ModuleAttribute
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