pub enum AttrSyntax {
Standard,
Gnu,
Declspec,
}Expand description
Which spelling an attribute was written in.
Variants§
Standard
[[name]], the C23 one.
Gnu
__attribute__((name)), the GNU one.
Declspec
__declspec(name), which the Windows headers are full of.
Trait Implementations§
Source§impl Clone for AttrSyntax
impl Clone for AttrSyntax
Source§fn clone(&self) -> AttrSyntax
fn clone(&self) -> AttrSyntax
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 moreimpl Copy for AttrSyntax
Source§impl Debug for AttrSyntax
impl Debug for AttrSyntax
impl Eq for AttrSyntax
Source§impl PartialEq for AttrSyntax
impl PartialEq for AttrSyntax
impl StructuralPartialEq for AttrSyntax
Auto Trait Implementations§
impl Freeze for AttrSyntax
impl RefUnwindSafe for AttrSyntax
impl Send for AttrSyntax
impl Sync for AttrSyntax
impl Unpin for AttrSyntax
impl UnsafeUnpin for AttrSyntax
impl UnwindSafe for AttrSyntax
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