pub struct BuiltinMarker {
pub name: &'static str,
pub kind: MarkerKind,
pub applicable_to: ItemKinds,
}Expand description
Definition of a built-in marker.
Markers are looked up by name (see get_builtin_marker) when sema
processes @mark(...) arguments. The closed list documents what
exists; user-defined markers are explicitly out of scope (ADR-0083).
Fields§
§name: &'static strMarker name as it appears inside @mark(...) (e.g. “copy”).
kind: MarkerKindWhat the marker does — a posture today, possibly more later.
applicable_to: ItemKindsItem kinds the marker is applicable to.
Trait Implementations§
Source§impl Clone for BuiltinMarker
impl Clone for BuiltinMarker
Source§fn clone(&self) -> BuiltinMarker
fn clone(&self) -> BuiltinMarker
Returns a duplicate 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 BuiltinMarker
impl Debug for BuiltinMarker
impl Copy for BuiltinMarker
Auto Trait Implementations§
impl Freeze for BuiltinMarker
impl RefUnwindSafe for BuiltinMarker
impl Send for BuiltinMarker
impl Sync for BuiltinMarker
impl Unpin for BuiltinMarker
impl UnsafeUnpin for BuiltinMarker
impl UnwindSafe for BuiltinMarker
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