Struct sway_ast::attribute::AttributeArg
source · pub struct AttributeArg {
pub name: Ident,
pub value: Option<Literal>,
}
Fields§
§name: Ident
§value: Option<Literal>
Trait Implementations§
source§impl Clone for AttributeArg
impl Clone for AttributeArg
source§fn clone(&self) -> AttributeArg
fn clone(&self) -> AttributeArg
Returns a copy 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 moresource§impl Debug for AttributeArg
impl Debug for AttributeArg
source§impl Serialize for AttributeArg
impl Serialize for AttributeArg
Auto Trait Implementations§
impl RefUnwindSafe for AttributeArg
impl Send for AttributeArg
impl Sync for AttributeArg
impl Unpin for AttributeArg
impl UnwindSafe for AttributeArg
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