pub struct Violation {
pub category: &'static str,
pub declared: String,
pub detected: String,
}Expand description
A single capability-category violation: the body used more than was declared.
Fields§
§category: &'static strWhich category was violated ("alloc", "io", or "ptr").
declared: StringThe declared level, rendered for the error message.
detected: StringThe detected (actually used) level, rendered for the error message.
Trait Implementations§
impl Eq for Violation
impl StructuralPartialEq for Violation
Auto Trait Implementations§
impl Freeze for Violation
impl RefUnwindSafe for Violation
impl Send for Violation
impl Sync for Violation
impl Unpin for Violation
impl UnsafeUnpin for Violation
impl UnwindSafe for Violation
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