pub struct ItemKinds(/* private fields */);Expand description
Item kinds a marker is applicable to.
Markers may permit structs, enums, or both. Today both posture markers allow either; the field is forward-looking for future markers (e.g. a “no-niche” marker that only makes sense on structs).
Implementations§
Source§impl ItemKinds
impl ItemKinds
pub const STRUCT: ItemKinds
pub const ENUM: ItemKinds
pub const FUNCTION: ItemKinds
pub const STRUCT_OR_ENUM: ItemKinds
pub const FN_OR_STRUCT: ItemKinds
Sourcepub const FN_STRUCT_OR_ENUM: ItemKinds
pub const FN_STRUCT_OR_ENUM: ItemKinds
ADR-0086: @mark(c) applies to fns, structs, and enums.
pub fn includes_struct(self) -> bool
pub fn includes_enum(self) -> bool
pub fn includes_function(self) -> bool
Trait Implementations§
impl Copy for ItemKinds
impl Eq for ItemKinds
impl StructuralPartialEq for ItemKinds
Auto Trait Implementations§
impl Freeze for ItemKinds
impl RefUnwindSafe for ItemKinds
impl Send for ItemKinds
impl Sync for ItemKinds
impl Unpin for ItemKinds
impl UnsafeUnpin for ItemKinds
impl UnwindSafe for ItemKinds
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