Struct rustc_lint::builtin::InitError
source · pub struct InitError {
pub(crate) message: String,
pub(crate) span: Option<Span>,
pub(crate) nested: Option<Box<InitError>>,
}
Expand description
Information about why a type cannot be initialized this way.
Fields§
§message: String
§span: Option<Span>
Spans from struct fields and similar that can be obtained from just the type.
nested: Option<Box<InitError>>
Used to report a trace through adts.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for InitError
impl !Send for InitError
impl !Sync for InitError
impl Unpin for InitError
impl UnwindSafe for InitError
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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 48 bytes