pub struct NotConst<what, site> {
pub what: what,
pub site: site,
}Expand description
Generate an erorr for an expression that is noot valid in a const declaration.
Fields§
§what: whatDescription of the invalid expression constructor.
site: siteLocation of the error.
Trait Implementations§
Auto Trait Implementations§
impl<what, site> Freeze for NotConst<what, site>
impl<what, site> RefUnwindSafe for NotConst<what, site>where
what: RefUnwindSafe,
site: RefUnwindSafe,
impl<what, site> Send for NotConst<what, site>
impl<what, site> Sync for NotConst<what, site>
impl<what, site> Unpin for NotConst<what, site>
impl<what, site> UnwindSafe for NotConst<what, site>where
what: UnwindSafe,
site: 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