pub struct Assertion { /* private fields */ }
Expand description
A link-time assertion.
Functions mostly like a Patch
.
Implementations§
Source§impl Assertion
impl Assertion
Sourcepub fn source(&self) -> (u32, u32)
pub fn source(&self) -> (u32, u32)
Where the assertion was defined. That is, the file stack node ID, and the line number.
Sourcepub fn err_type(&self) -> AssertionType
pub fn err_type(&self) -> AssertionType
The assertion’s error type (warning, error, fatal).
Sourcepub fn pc_section_id(&self) -> u32
pub fn pc_section_id(&self) -> u32
The ID of the expression’s PC section. See pc_offset
for more info.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Assertion
impl RefUnwindSafe for Assertion
impl Send for Assertion
impl Sync for Assertion
impl Unpin for Assertion
impl UnwindSafe for Assertion
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