pub struct ScopeCheck;Expand description
Marker type for the ScopeCheck audit-record kind.
Introduced per the ticket’s introduces: frontmatter so the variant name
has a type-level identity in addition to the AuditRecordKind
discriminant. The marker is empty and zero-cost; callers that statically
know they’re writing a scope-check record can use it to make that intent
readable at the call site:
ⓘ
let kind = ScopeCheck.into(); // AuditRecordKind::ScopeCheckTrait Implementations§
Source§impl Clone for ScopeCheck
impl Clone for ScopeCheck
Source§fn clone(&self) -> ScopeCheck
fn clone(&self) -> ScopeCheck
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 moreSource§impl Debug for ScopeCheck
impl Debug for ScopeCheck
Source§impl Default for ScopeCheck
impl Default for ScopeCheck
Source§fn default() -> ScopeCheck
fn default() -> ScopeCheck
Returns the “default value” for a type. Read more
Source§impl From<ScopeCheck> for AuditRecordKind
impl From<ScopeCheck> for AuditRecordKind
Source§fn from(_: ScopeCheck) -> Self
fn from(_: ScopeCheck) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ScopeCheck
impl PartialEq for ScopeCheck
Source§fn eq(&self, other: &ScopeCheck) -> bool
fn eq(&self, other: &ScopeCheck) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ScopeCheck
impl Eq for ScopeCheck
impl StructuralPartialEq for ScopeCheck
Auto Trait Implementations§
impl Freeze for ScopeCheck
impl RefUnwindSafe for ScopeCheck
impl Send for ScopeCheck
impl Sync for ScopeCheck
impl Unpin for ScopeCheck
impl UnsafeUnpin for ScopeCheck
impl UnwindSafe for ScopeCheck
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