Enum sway_ast::attribute::AttributeHashKind
source · pub enum AttributeHashKind {
Inner(HashBangToken),
Outer(HashToken),
}
Expand description
Denotes the target direction of an AttributeDecl and the hash token kind associated.
Example:
// outer (after), written as `///`
#[doc("a Sway struct")]
struct Foo {}
// inner (before), written as `//!`
enum Bar {}
#![doc("a Sway enum")]
Variants§
Inner(HashBangToken)
Inner specifies that the attribute belongs to the item before it.
Outer(HashToken)
Outer specifies that the attribute belongs to the item after it.
Trait Implementations§
source§impl Clone for AttributeHashKind
impl Clone for AttributeHashKind
source§fn clone(&self) -> AttributeHashKind
fn clone(&self) -> AttributeHashKind
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 AttributeHashKind
impl Debug for AttributeHashKind
Auto Trait Implementations§
impl RefUnwindSafe for AttributeHashKind
impl Send for AttributeHashKind
impl Sync for AttributeHashKind
impl Unpin for AttributeHashKind
impl UnwindSafe for AttributeHashKind
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