pub struct Warning<K: Kind> {
pub kind: K,
pub elem_id: ElemId,
}
Expand description
Groups together a module’s Kind
and the associated json::Element
.
The json::Element
is referenced by ElemId
.
Fields§
§kind: K
The kind of warning.
elem_id: ElemId
The Id of the element that caused the Warning
.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<K> Freeze for Warning<K>where
K: Freeze,
impl<K> RefUnwindSafe for Warning<K>where
K: RefUnwindSafe,
impl<K> Send for Warning<K>where
K: Send,
impl<K> Sync for Warning<K>where
K: Sync,
impl<K> Unpin for Warning<K>where
K: Unpin,
impl<K> UnwindSafe for Warning<K>where
K: UnwindSafe,
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