pub struct AttributeUse {
pub use_kind: AttributeUseKind,
pub decl: Arc<AttributeDecl>,
pub default: Option<String>,
pub fixed: Option<String>,
}Expand description
How an attribute appears within a complex type.
Fields§
§use_kind: AttributeUseKind§decl: Arc<AttributeDecl>§default: Option<String>Local override of the declaration’s default, if any.
fixed: Option<String>Local override of the declaration’s fixed value.
Trait Implementations§
Source§impl Clone for AttributeUse
impl Clone for AttributeUse
Source§fn clone(&self) -> AttributeUse
fn clone(&self) -> AttributeUse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AttributeUse
impl RefUnwindSafe for AttributeUse
impl Send for AttributeUse
impl Sync for AttributeUse
impl Unpin for AttributeUse
impl UnsafeUnpin for AttributeUse
impl UnwindSafe for AttributeUse
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