pub struct RuleSourceMetadata {
pub file: &'static str,
pub line: u32,
pub column: u32,
pub rule_name: Option<&'static str>,
}Expand description
Call-site metadata for a traced rule (not serialized as a standalone trace value).
Fields§
§file: &'static str§line: u32§column: u32§rule_name: Option<&'static str>Implementations§
Trait Implementations§
Source§impl Clone for RuleSourceMetadata
impl Clone for RuleSourceMetadata
Source§fn clone(&self) -> RuleSourceMetadata
fn clone(&self) -> RuleSourceMetadata
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 RuleSourceMetadata
impl Debug for RuleSourceMetadata
Source§impl Hash for RuleSourceMetadata
impl Hash for RuleSourceMetadata
Source§impl PartialEq for RuleSourceMetadata
impl PartialEq for RuleSourceMetadata
Source§fn eq(&self, other: &RuleSourceMetadata) -> bool
fn eq(&self, other: &RuleSourceMetadata) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for RuleSourceMetadata
impl Eq for RuleSourceMetadata
impl StructuralPartialEq for RuleSourceMetadata
Auto Trait Implementations§
impl Freeze for RuleSourceMetadata
impl RefUnwindSafe for RuleSourceMetadata
impl Send for RuleSourceMetadata
impl Sync for RuleSourceMetadata
impl Unpin for RuleSourceMetadata
impl UnsafeUnpin for RuleSourceMetadata
impl UnwindSafe for RuleSourceMetadata
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