pub struct BoolRequired<what, site, inner> {
pub what: what,
pub site: site,
pub inner: inner,
}Expand description
Generate an error for something that should have been a bool but isn’t,
e.g. if 1 then 0 else 1.
Fields§
§what: whatExplanation of what this item is (e.g. “the condition of if”)
site: siteLocation of the error.
inner: innerLocation of the inner contents.
Trait Implementations§
Auto Trait Implementations§
impl<what, site, inner> Freeze for BoolRequired<what, site, inner>
impl<what, site, inner> RefUnwindSafe for BoolRequired<what, site, inner>
impl<what, site, inner> Send for BoolRequired<what, site, inner>
impl<what, site, inner> Sync for BoolRequired<what, site, inner>
impl<what, site, inner> Unpin for BoolRequired<what, site, inner>
impl<what, site, inner> UnwindSafe for BoolRequired<what, site, inner>
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