pub struct Item {
pub id: String,
pub phase: Phase,
pub kind: &'static str,
pub what: ItemKind,
pub severity: Severity,
pub address: String,
pub range: Option<String>,
pub detail: String,
pub suggested: Vec<String>,
/* private fields */
}Expand description
One concrete, located problem in the worklist.
Fields§
§id: StringA stable identifier: <phase>/<kind>/<address>.
phase: Phase§kind: &'static strThe problem kind, e.g. unfollowed_target or undefined_bytes.
what: ItemKindThe problem as data.
severity: Severity§address: StringThe address to look at, e.g. CODE:0x95f.
range: Option<String>The affected range, when the item spans one.
detail: StringProse, filled by a renderer.
suggested: Vec<String>Command(s) that would resolve the item, usually runnable verbatim.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Item
impl Freeze for Item
impl Move for Item
impl RefUnwindSafe for Item
impl Send for Item
impl Sync for Item
impl Unpin for Item
impl UnsafeUnpin for Item
impl UnwindSafe for Item
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