pub struct NotExpressibleEntry {
pub name: Option<Ident>,
pub reason: String,
pub location: SourceLocation,
}Expand description
One item of a ScanError::NotExpressible report.
Fields§
§name: Option<Ident>The item’s name, or None for an item kind that has none.
reason: StringRendered ItemError — the frontend’s own
message, so one authority produces it.
location: SourceLocationTrait Implementations§
Auto Trait Implementations§
impl !Send for NotExpressibleEntry
impl !Sync for NotExpressibleEntry
impl Freeze for NotExpressibleEntry
impl RefUnwindSafe for NotExpressibleEntry
impl Unpin for NotExpressibleEntry
impl UnsafeUnpin for NotExpressibleEntry
impl UnwindSafe for NotExpressibleEntry
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more